Part Number Hot Search : 
00BZXC HDSPA90X 1000B 5KP24A 2B356 VCH162 PUMH1 9KXXX
Product Description
Full Text Search
 

To Download CL-PS7111-VC-A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 CL-PS7111
Preliminary Data Book
FEATURES
s Ultra low power
-- Designed for applications that require long battery life while using standard AA/AAA batteries -- Average 45 mW/66 mW in normal operation (2.7 V/3.3 V, 13 MHz/18.432 MHz) -- Average 15 mW in idle mode (clock to the CPU stopped, everything else running) -- Average 15 A in standby mode (realtime clock on, everything else stopped)
Low-Power System-on-a-Chip
OVERVIEW
The CL-PS7111 is designed for ultra-low-power applications such as organizers/PDAs, two-way pagers, smart phones, and hand-held internet appliances. The core-logic functionality of the device is built around an ARM710a microprocessor with 8 Kbytes of four-way set-associative unified cache. A t 1 8 . 4 3 2 M H z ( fo r 3 . 3 - V o p e ra t i o n ) , t h e CL-PS7111 delivers nearly 15 Vax-MIPS of performance (based on Dhrystone (R) benchmark) -- roughly the same level of performance offered by a 3 3 - M H z I n t e l (R) ' 4 8 6 - b a s e d P C.
(cont.)
s Performance matching 33-MHz Intel(R) '486-based PC
-- 15 VaxTM-MIPS (Dhrystone(R)) at 18 MHz
s ARM710a microprocessor
-- ARM7 CPU -- 8 Kbytes of four-way set-associative cache -- MMU with 64-entry TLB (transition look-aside buffer)
s DRAM controller
-- Supports both 16- and 32-bit-wide DRAMs
s ROM/SRAM/flash memory control
-- Decodes 4, 5, or 6 separate memory segments of 256 Mbytes (cont.)
Functional Block Diagram
13-MHz INPUT 3.6864 MHz 18.432-MHz PLL
INTERNAL DATA BUS
D0-D31 POR, RUN, RESET, WAKEUP PB[0-1], CS[4-5] EXPCLK, WORD, CD[0-3], EXPRDY, WRITE MOE, MWE RAS[0-1], CAS[0-3]
ARM710a
32.768 kHz 32.768-kHz OSCILLATOR INTERRUPT CONTROLLER POWER MANAGEMENT MMU GPIO COUNTERS (2) RTC ARM7 P CORE
STATE CONTROL
CL-PS6700 INTFC.
EINT[1-3], FIQ, MEDCHG BATOK, EXTPWR PWRFL, BATCHG PORTS A, B, D (8-BIT) PORT E (3-BIT) KEYBOARD COLUMN DRIVERS (0-7) BUZZER DRIVE DC TO DC
ROM/EXPANSION CONTROL 8-KBYTE CACHE DRAM CONTROLLER
INTERNAL ADDRESS BUS
MUX
A[0-27], DRA[0-12]
PSU CONTROL
LCD CONTROLLER SRAM 2 KBYTE UART UART
LCD DRIVE
ADCCLK, ADCIN, ADCOUT, SMPCLK, RXFS, TXFS PCMCLK, PCMSYNC PCMIN, PCMOUT
SYNC. SERIAL INTERFACE CODEC INTFC.
IRDA
LED AND PHOTODIODE ASYNC INTERFACE 1 ASYNC INTERFACE 2
ON-CHIP BOOT ROM
Version 2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
FEATURES (cont.)
Mbytes -- Each segment can be configured as 8, 16, or 32 bits wide and support page-mode access -- Programmable access time for conventional SRAM/ROM/flash memory
s Two UARTs
-- Supports bit rates up to 115.2 kbps -- Contains two 16-byte FIFOs for Tx and Rx -- Supports modem control signals
s Support for up to two ultra-low-power CL-PS6700 PC Card controllers s 2 Kbytes of on-chip SRAM for fast program execution s On-chip boot ROM s Two synchronous serial interfaces
-- Supports SPI(R) 1 or Microwire(R) 2-compatible -- Audio codec
s SIR (slow -- up to 115.2 kbps -- infrared) encoder
-- IrDA (Infrared Data Association) SIR protocol encoder can be optionally switched into Tx and Rx signals of UART 1 up to 115 kbps
s DC-to-DC converter interface
-- Provides two 96-kHz clock outputs with programmable duty ratio (from 1-in-16 to 15-in-16)
s LCD controller
-- Interfaces directly to a single-scan panel monochrome LCD -- Panel size is programmable from 16 to 1024 pixels in 16pixel increments -- Video frame size programmable up to 128 Kbytes -- Bits per pixel programmable from 1, 2, or 4
s 27-bit general-purpose I/O
-- Three 8-bit and one 3-bit GPIO port -- Supports scanning keyboard matrix
s Timer and counters s 3.3 V at 18.432 MHz and 2.7 V at 13 MHz
1 2
SPI is a registered trademark of Motorola(R). Microwire is a registered trademark of National Semiconductor(R).
s 208-pin VQFP package s Evaluation kit available with BOM, schematics, and design database
OVERVIEW (cont.)
As shown in the system block diagram, simply adding desired memory and peripherals to the highly integrated CL-PS7111 completes a hand-held organizer/PDA system board. All the interface logic is integrated on-chip. assure the lowest possible power consumption, the CL-PS7111 supports self-refresh DRAMs, which are placed in a low-power state by the device when it enters low-power standby mode.
Serial Interface
For RS-232 serial communications, the CL-PS7111 includes two UARTs, both of which have two 16byte FIFOs for receive and transmit data. The UARTs support bit rates of up to 115.2 kbps. An IrDA SIR protocol encoder/decoder can be optionally switched into the Rx/Tx signals to/from one of the UARTs to enable these signals to drive an infrared communication interface directly. A full-duplex codec interface allows direct connection of a standard codec chip to the CL-PS7111, allowing storage and playback of sound. A separate synchronous serial interface supports two industrystandard protocols (SPI(R) and Microwire(R)) for interfacing to standard devices such as an ADC, allowing for peripheral expansion such as the use of a digitizer pen. September 1997
Memory Interface
There are two main external memory interfaces and a DMA controller that fetches video display data for the LCD controller from main DRAM memory. The SRAM/ROM-style interface has programmable wait-state timings and includes burst-mode capability, with six chip selects decoding six 256-Mbyte sections of addressable space. For maximum flexibility, each bank can be specified to be 8, 16 or 32 bits wide to enable the use of low-cost memory in a 32-bit system. The system can have an 8-bit-wide boot option to optimize memory size. The programmable 16- or 32-bit-wide DRAM interface allows direct connection of up to two banks of DRAM, each bank containing up to 256 Mbytes. To 2
OVERVIEW
PRELIMINARY DATA BOOK v2.0
CL-PS7111
Low-Power System-on-a-Chip
OSCILLATOR
CL-PS7111
DD[3:0] NCS[4] PB0 EXPCLK CL1 CL2 FRM M COL[7:0] PA[7:0] KEYBOARD LCD MODULE
D[31:0] PC CARD SOCKETS CL-PS6700 PC CARD CONTROLLER A[27:0] NMOE WRITE
PB[7:0] PD[7:0] PE[2:0] NRAS[1] NRAS[0] x 16 DRAM x 16 DRAM x 16 DRAM x 16 DRAM NCAS[0] NCAS[1] NCAS[2] NCAS[3] NCS[0] NCS[1] x 16 FLASH x 16 ROM NPOR NPWRFL BATOK NEXTPWR NBATCHG RUN WAKEUP DRIVE[1:0] FB[1:0] PCMSYNC PCMOUT PCMCLK PCMIN C S [n ] WORD EXTERNAL MEMORY MAPPED EXPANSION BUFFERS RxD1/2 TxD1/2 DSR CTS DCD ADCCLK NADCCS ADCOUT ADCIN SMPCLK DC-TO-DC CONVERTERS POWER SUPPLY UNIT AND COMPARATORS DC INPUT
BATTERY
x 16 FLASH
x 16 ROM
CODEC
LEDDRV PHDIN
IR LED AND PHOTODIODE
NCS[2] NCS[3]
2x RS-232 TRANSEIVER
ADDITIONAL I/O
BUFFERS AND LATCHES
ADC
DIGITIZER
A CL-PS7111-Based System
OVERVIEW (cont.)
Power Management
The CL-PS7111 is designed for low-power operation. There are three basic power states:
q q
Operating -- This state is the same as the idle state, except that the processor clock is running.
Packaging
The CL-PS7111 is packaged in a 208-pin VQFP package, with a body size of 28-mm square, a lead pitch of 0.5 mm and thickness of 1.4 mm.
Standby -- This state is equivalent to the computer being switched off (no display), and the main oscillator shut down. Idle -- In this state, the device is functioning and all oscillators are running, but the processor clock is halted while waiting for an event such as a key press.
PRELIMINARY DATA BOOK v2.0
q
September 1997
OVERVIEW
3
CL-PS7111
Low-Power System-on-a-Chip
Table of Contents
1. 2. CONVENTIONS ...................................................................................................................... 6 PIN INFORMATION ................................................................................................................ 8
2.1 2.2 Pin Diagram ...........................................................................................................................................8 Pin Descriptions .....................................................................................................................................9 2.2.1 External Signal Functions .........................................................................................................9 2.2.2 Numeric Pin Listing .................................................................................................................12 Main Functional Blocks ........................................................................................................................18 System Maximization ...........................................................................................................................20 Endian Functionality.............................................................................................................................21 CPU Core.............................................................................................................................................22 Counters...............................................................................................................................................22 3.5.1 Free-Running Mode ................................................................................................................23 3.5.2 Prescale Mode ........................................................................................................................23 Realtime Clock .....................................................................................................................................23 State Control ........................................................................................................................................23 Expansion and ROM Interface .............................................................................................................25 3.8.1 CL-PS7111 Boot ROM............................................................................................................26 3.8.2 CL-PS6700 PCMCIA controller interface ................................................................................27 DRAM Controller ..................................................................................................................................30 LCD Controller .....................................................................................................................................33 Two Internal UARTs and SIR Encoder .................................................................................................34 Clocks ..................................................................................................................................................35 Interrupt Controller ...............................................................................................................................37 3.13.1 Interrupt Latencies in Different States.....................................................................................38 Resets ..................................................................................................................................................39 Two DC-to-DC Converters ...................................................................................................................40 Serial Interface .....................................................................................................................................40 3.16.1 Codec Interface.......................................................................................................................41 3.16.2 ADC Interface -- Master-Mode Only SSI (Synchronous Serial Interface) ..............................41
3.
FUNCTIONAL DESCRIPTION ............................................................................................. 16
3.1 3.2 3.3 3.4 3.5
3.6 3.7 3.8
3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16
4. 5.
MEMORY MAP ..................................................................................................................... 43 REGISTER DESCRIPTIONS................................................................................................ 44
5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.10 5.11 5.12 5.13 Port A Data Register -- PADR .............................................................................................................47 Port B Data Register -- PBDR.............................................................................................................47 Port D Data Register -- PDDR ............................................................................................................47 Port A Data Direction Register -- PADDR ...........................................................................................47 Port B Data Direction Register -- PBDDR...........................................................................................47 Port D Data Direction Register -- PDDDR ..........................................................................................47 Port E Data Register -- PEDR.............................................................................................................47 Port E Data Direction Register -- PEDDR...........................................................................................47 5.8.1 System Control Register 1 -- SYSCON1 ...............................................................................48 System Status Flags Register 1 -- SYSFLG1 .....................................................................................50 Memory Configuration Register 1 -- MEMCFG1.................................................................................53 5.10.1 Memory Configuration Register 2 -- MEMCFG2....................................................................54 DRAM Refresh Period Register -- DRFPR .........................................................................................57 Interrupt Status Register 1 -- INTSR1.................................................................................................58 Interrupt Mask Register 1 -- INTMR1..................................................................................................60
4
OVERVIEW
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
5.14 5.15 5.16 5.17 5.18 5.19 5.20 5.21 5.22 5.23 5.24 5.25 5.26 5.27 5.28 5.29 5.30 5.31 5.32 5.33 5.34 5.35 5.36 5.37 5.38 5.39 5.40 5.41 5.42
LCD Control Register -- LCDCON ......................................................................................................60 Timer Counter 1 Data Register -- TC1D .............................................................................................62 Timer Counter 2 Data Register -- TC2D .............................................................................................62 Realtime Clock Data Register -- RTCDR ............................................................................................62 Realtime Clock Match Register -- RTCMR .........................................................................................62 Pump Control Register -- PMPCON ...................................................................................................63 Codec Interface Data Register -- CODR.............................................................................................64 UART Data Registers -- UARTDR1-2 ................................................................................................64 UART Bit Rate and Line Control Registers -- UBRLCR1-2................................................................65 Synchronous Serial ADC Interface Data Register -- SYNCIO ............................................................67 Least-Significant Word-LCD Palette Register -- PALLSW...................................................................68 Most-Significant Word-LCD Palette Register -- PALMSW...................................................................68 Clear All Start Up Reason Flags Location -- STFCLR........................................................................69 Battery Low End-of-Interrupt -- BLEOI................................................................................................69 Media Changed End-of-Interrupt -- MCEOI ........................................................................................69 Tick End-of-Interrupt Location -- TEOI ................................................................................................69 End--of-Interrupt Location -- TC1EOI TC1 ..........................................................................................69 End-of-Interrupt Location -- TC2EOI TC2 ...........................................................................................69 RTC Match End-of-Interrupt -- RTCEOI..............................................................................................69 UART1 Modem Status Changed End-of-Interrupt -- UMSEOI............................................................69 Codec End-of-Interrupt Location -- COEOI.........................................................................................69 Enter Idle State Location -- HALT .......................................................................................................69 Enter Standby State Location -- STDBY.............................................................................................69 LCD Frame Buffer Start Address -- FRBADDR ..................................................................................70 System Control Register 2 -- SYSCON2 ............................................................................................70 System Status Flags Register 2 -- SYSFLG2 .....................................................................................71 Interrupt Status Register 2 -- INTSR2.................................................................................................72 Interrupt Mask Register 2 -- INTMR2..................................................................................................72 Keyboard End-of-Interrupt Location -- KBDEOI ..................................................................................72 Absolute Maximum Ratings .................................................................................................................73 Recommended Operating Conditions ..................................................................................................73 DC Characteristics ...............................................................................................................................74 AC Characteristics ...............................................................................................................................75 I/O Buffer Characteristics .....................................................................................................................87 Test Modes...........................................................................................................................................87 6.6.1 Oscillator and PLL Bypass Mode ............................................................................................88 6.6.2 Functional (EPB) Test Mode....................................................................................................88 6.6.3 Oscillator and PLL Test Mode .................................................................................................88 6.6.4 Pin Test Mode..........................................................................................................................89 6.6.5 High-Z (System) Test Mode.....................................................................................................89 6.6.6 Software-Selectable Test Functionality....................................................................................90 208-Pin VQFP Package Outline Drawing.............................................................................................91
6.
ELECTRICAL SPECIFICATIONS .........................................................................................73
6.1 6.2 6.3 6.4 6.5 6.6
7. 8. A.
PACKAGE SPECIFICATIONS...............................................................................................91
7.1
ORDERING INFORMATION .................................................................................................92 BOOT CODE..........................................................................................................................93 BIT INDEX..............................................................................................................................99 INDEX ..................................................................................................................................101
September 1997
PRELIMINARY DATA BOOK v2.0
OVERVIEW
5
CL-PS7111
Low-Power System-on-a-Chip
REVISION HISTORY
Version 1.0 - Initial version, generated March 1997. Version 2.0 - Generated September 1997. In addition to minor revisions, the following modifications have been made to the CL-PS7111 Data Book. List of Revisions
Version
2.0
Section
Features
Page
1
Revision Note
Under ultra low power, the following bullet was added: Average 45mW/66 mW in normal operation (2.7 V/3.3 V, 13 MHz/18.432 MHz). For the Sync. Serial Interface, the pin names ADCCLK, ADCIN, ADCOUT, and SMPCLK replaced CLK, IN, and OUT.
2.0
Functional Block Diagram
1,19 For the Codec Interface, the pin names PCMCLK, PCMSYNC, PCMIN, and PCMOUT replaced CLK, SYNC IN, OUT, and SMPCK. 24 43 New text was added. This section was moved from Section 3.1 in version 1.0. This section was moved from Section 3.2 in version 1.0.
2.0 2.0
3.7 State Control 4. Memory Map
2.0
5. Register Descriptions
44 to 72
Bit numbers were added to the register descriptions. Register descriptions were also reformatted and reorganized to aid users' understanding. In the `R/W' column, SYSFLG1 (8000.0140) and INTSR1 (8000.0240) were changed from RD to R, and STFCLR (8000.05C0) through STDBY (8000.0840) were changed from WR to W. A description for the SSIBUSY bit was added. The following text was added to the description of the CODECEN bit: This bit must always be set to `1'.
2.0
Table 5-1
45
2.0 2.0
5.9 SYSFLG1 5.38 SYSFLG1
51 71
CIRRUS LOGIC CONFIDENTIAL
March 1997
ADVANCE DATA BOOK v2.0
REVISION HISTORY
CL-PS7111
Low-Power System-on-a-Chip
1.
CONVENTIONS
This section presents acronyms, abbreviations, units of measurement, and conventions used in this data book.
Acronyms and Abbreviations
The following table lists abbreviations and acronyms used in this data book.
Acronym/ Abbreviation
AC ADC codec CMOS CPU DC DMA DRAM EPB FCS FIFO GPIO ICT IR IrDA LCD LSB MIPS
Definition
alternating current analog-to-digital coder/decoder complementary metal-oxide semiconductor central processing unit direct current direct-memory access dynamic random-access memory embedded peripheral bus frame check sequence first in/first out general-purpose I/O in circuit test infrared infrared data association liquid-crystal display least-significant bit millions of instructions per second
Acronym/ Abbreviation
MMU MSB PCB PDA PIA PLL PSU p/u RAM RISC ROM RTC SIR SRAM SSI TLB UART VQFP
Definition (cont.)
memory management unit most-significant bit printed circuit board personal digital assistant peripheral interface adapter phase locked loop power supply unit pull-up resistor random-access memory reduced-instruction-set computer read-only memory realtime clock slow (9600-115.2 kbps) infrared static random-access memory synchronous serial interface translation look-aside buffer universal asynchronous receiver transmitter very-tight-pitch quad flat pack
6
CONVENTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Units of Measurement
Symbol
C Hz Kbyte kHz k Mbps Mbyte MHz F A s mA ms ns V W
Unit of Measure
degree Celsius hertz (cycle per second) kilobyte (1,024 bytes) kilohertz kilohm megabits (1,048,576 bits) per second megabyte (1,048,576 bytes) megahertz (1,000 kilohertz) microfarad microampere microsecond (1,000 nanoseconds) milliampere millisecond (1,000 microseconds) nanosecond volt watt
General Conventions
Hexadecimal numbers are presented with all letters in uppercase and a lowercase h appended. For example, 14h and 03CAh are hexadecimal numbers. Binary numbers are enclosed in single quotation marks when in text (for example, `11' designates a binary number). Numbers not indicated by an h or quotation marks are decimal. Registers are referred to by acronym, as listed in Table 5-1 and Table 5-2, with bits listed in brackets MSBto-LSB separated by a colon (:) (for example, CODR[7:0]) or LSB-to-MSB separated by a hyphen (for example, CODR[0-2]). The use of `tbd' indicates values that are `to be determined', `n/a' designates `not available', and `n/c' indicates a pin that is a `no connect'.
Pin Description Conventions
Abbreviations used for signal directions in Chapter 2 are listed in the following table:
Abbreviation
I O I/O
Direction Input Output Input or output
September 1997
PRELIMINARY DATA BOOK v2.0
CONVENTIONS
7
CL-PS7111
Low-Power System-on-a-Chip
2.
2.1
PIN INFORMATION
Pin Diagram
NURESET MEDCHG/NBROM NPOR BATOK NEXTPWR NBATCHG D[7] VSS A[7] D[8] A[8] D[9] A[9] D[10] A[10] D[11] VSS VDD A[11] D[12] A[12] D[13] A[13] D[14] A[14] D[15] A[15]/DRA[12] D[16] A[16]/DRA[11] D[17] A[17]/DRA[10] VSS VSS VDD D[18] A[18]/DRA[9] D[19] A[19]/DRA[8] D[20] A[20]/DRA[7] VSS D[21] A[21]/DRA[6] D[22] A[22]/DRA[5] D[23] A[23]/DRA[4] D[24] VSS VDD A[24]/DRA[3] N/C 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105
NCS[5] VDD VSS EXPCLK WORD WRITE RUN/CLKEN EXPRDY TXD[2] RXD[2] VSS VSS PB[7] PB[6] PB[5] PB[4] PB[3] PB[2] PB[1]/PRDY[2] PB[0]/PRDY[1] VDD VSS PA[7] PA[6] PA[5] PA[4] PA[3] PA[2] PA[1] PA[0] LEDDRV TXD[1] VSS PHDIN CTS RXD DCD DSR NTEST[1] NTEST[0] EINT[3] NEINT[2] NEINT[1] NEXTFIQ PE[2]/CLKSEL PE[1]BOOTSEL[1] PE[0]BOOTSEL[0] VSS RTCOUT RTCIN VDD N/C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
VDD MOSCIN MOSCOUT VSS WAKEUP NPWRFL A[6] D[6] A[5] D[5] VDD VSS A[4] D[4] A[3] D[3] A[2] VSS D[2] A[1] D[1] A[0] D[0] VSS VDD VSS VDD CL2 CL1 FRM M DD[3] DD[2] VSS DD[1] DD[0] NRAS[1] NRAS[0] NCAS[3] NCAS[2] VDD VSS NCAS[1] NCAS[0] NMWE NMOE VSS NCS[0] NCS[1] NCS[2] NCS[3] NCS[4]
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
CL-PS7111
208-Pin VQFP
104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53
D[25] A[25]/DRA[2] D[26] A[26]/DRA[1] D[27] A[27]/DRA[0] VSS D[28] D[29] D[30] D[31] BUZ COL[0] COL[1] VSS VDD COL[2] COL[3] COL[4] COL[5] COL[6] COL[7]/PTOUT FB[0] VSS FB[1] SMPCLK ADCOUT ADCCLK DRIVE[0] DRIVE[1] VDD VSS VDD VSS NADCCS ADCIN N/C PCMIN PCMOUT PCMSYNC VSS PCMCLK PD[0] PD[1] PD[2] PD[3] VSS VDD PD[4] PD[5] PD[6] PD[7]
8
PIN INFORMATION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
2.2
2.2.1
Function
Pin Descriptions
External Signal Functions
Signal Name
D[0-31] A[0-14] A[15]/ DRA[12]- A[27]/DRA[0]
Type Description
I/O O 32-bit system data bus for DRAM, ROM, and memory-mapped expansion. Least-significant 15 bits of system byte address during ROM and expansion cycles. 13-bit multiplexed DRAM word address during DRAM cycles or address bits 16 to 27 of system byte address during ROM and expansion cycles.
Address and Data Bus
O
Memory and Expansion Interface
NRAS[0-1] NCAS[0-3] NMOE NMWE NCS[0-3] NCS[4-5] EXPRDY WRITE
O O O O O O I O
DRAM RAS outputs to DRAM banks 0-1. DRAM CAS outputs for bytes 0 to 3 within 32-bit word. NCAS[0] enables D[7:0]. DRAM, ROM, and expansion output enable. DRAM, ROM, and expansion write enable. Expansion channel I/O strobes. Active-low, SRAM-like chip selects for expansion. Expansion channel I/O strobes. Active-low chip select for expansion of low for CL-PS6700 interface. Expansion channel ready. Extends bus cycle when low. Transfer direction. Low during reads, high during writes from the CL-PS7111. Also connected to PTYPE of CL-PS6700. Word access enable. Driven high during word-wide cycles; low during byte-wide cycles. Expansion clock output. Clock output at the same phase and speed as the CPU clock. In 13-MHz mode, this pin is used as the clock input. Media changed input. Active-high deglitched input for media insertion; should be set low during NPOR to enable boot code. External active-low fast interrupt request input. External active-high interrupt request input. Two general-purpose, active-low interrupt inputs. Power fail input. Active-low deglitched input to force system into the standby state. Main battery OK input. Falling edge generates a FIQ; a low level in standby mode inhibits system start up; deglitched input. External power sense. Must be driven low if the system is powered by external source. New battery sense. Must be driven low if battery voltage falls below the `no-battery' threshold.
WORD
O
EXPCLK Interrupts MEDCHG/ NBROM NEXTFIQ EINT[3] NEINT[1-2] Power Management BATOK NPWRFL
I/O
I I I I I I
NEXTPWR
I
NBATCHG
I
September 1997
PRELIMINARY DATA BOOK v2.0
PIN INFORMATION
9
CL-PS7111
Low-Power System-on-a-Chip
2.2.1
Function
External Signal Functions (cont.)
Signal Name
NPOR RUN/CLKEN
Type Description
I O Power on reset input. Active-low input completely resets the system. System active output. High when system is active or idle, low while in the standby state. Wake-up input signal. Rising edge forces system into operating state; active after a power on reset. User reset input. Active-low input from user reset button. Codec clock signal. Codec frame synchronization, pulse output. Codec serial data output. Codec serial data input. Serial clock output. Serial sample clock output. Chip select for ADC interface. Serial data output. Serial data input. Infrared LED drive output, multiplexed with UART1. Photo diode input, multiplexed with UART1. RS-232 UART1 and two Tx outputs. RS-232 UART1 and two Rx inputs. RS-232 DSR input. RS-232 DCD input. RS-232 CTS input. LCD serial display data. LCD line clock. LCD pixel clock. LCD frame synchronization pulse output. LCD AC bias drive.
State Control
WAKEUP NURESET Codec Interface PCMCLK PCMSYNC PCMOUT PCMIN ADC Interface SSI1 ADCCLK SMPCLK NADCCS ADCOUT ADCIN IrDA and RS-232 Interface LEDDRV PHDIN TxD[1-2] RxD[1-2] DSR DCD CTS LCD DD[0-3] CL[1] CL[2] FRM M
I I I/O O O I O O O O I O I O I I I I O O O O O
10
PIN INFORMATION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
2.2.1
Function
Keyboard Buzzer Drive GeneralPurpose I/O
External Signal Functions (cont.)
Signal Name
COL[0-7] BUZ PA[0-7] PB[0-7] PD[0-7] PE[0-2]
Type Description
O O I/O I/O I/O I/O O I I I/O Keyboard column drives. Buzzer drive output in 18.432-MHz mode. Port A I/O. Port B I/O (default input). Port D I/O (higher drive, default output). Port E I/O (three bits only, default input). DC-to-DC converter drive outputs. DC-to-DC feedback inputs. Test mode select inputs. Main 3.6864-MHz oscillator for 18.432-MHz PLL.
DC-to-DC Drives DRIVE[0-1] FB[0-1] Test Oscillators NTEST[0-1] MOSCIN/ MOSOUT RTCIN/ RTCOUT
I/O
Realtime clock 32.768-kHz oscillator.
September 1997
PRELIMINARY DATA BOOK v2.0
PIN INFORMATION
11
CL-PS7111
Low-Power System-on-a-Chip
2.2.2
Pin No.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 53
Numeric Pin Listing
Signal
NCS[5] VDD VSS EXPCLK WORD WRITE RUN/CLKEN EXPRDY TXD[2] RXD[2] VSS VSS PB[7] PB[6] PB[5] PB[4] PB[3] PB[2] PB[1]/PRDY[2] PB[0]/PRDY[1] VDD VSS PA[7] PA[6] PA[5] PA[4] PD[7] I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Pad power Pad power I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1
Buffer
I/O - strength 1 Pad power Pad power I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Core power
Reset and Pin Test Reset State
Low - - Low/Input Low Low Low Input High Input - - Input Input Input Input Input Input Input Input - - Input Input Input Input Low
Pin No.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 79
Signal
PA[3] PA[2] PA[1] PA[0] LEDDRV TXD[1] VSS PHDIN CTS RXD[1] DCD DSR NTEST[1] NTEST[0] EINT[3] NEINT[2] NEINT[1] NEXTFIQ PE[2]/CLKSEL PE[1] / BOOTSEL[1] PE[0]/ BOOTSEL[0] VSS RTCOUT RTCIN VDD N/C a SMPCLK
Buffer
I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Pad power I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Input with p/u Input with p/u I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 32K oscillator power 32K oscillator 32K oscillator 32K oscillator power
Reset and Pin Test Reset State
Input Input Input Input Low High - Input Input Input Input Input High Input High Input Input Input Input Input Input Input Input - X X -
I/O - strength 1
Low
12
PIN INFORMATION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
2.2.2
Pin No.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 77 78 107 108
Numeric Pin Listing (cont.)
Signal
PD[6] PD[5] PD[4] VDD VSS PD[3] PD[2] PD[1] PD[0] PCMCLK VSS PCMSYNC PCMOUT PCMIN N/C ADCIN NADCCS VSS VDD VSS VDD DRIVE[1] DRIVE[0] ADCCLK ADCOUT ADCCLK ADCOUT VDD VSS
Buffer
I/O - strength 1 I/O - strength 1 I/O - strength 1 Pad power Pad power I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 - Core power I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Core power Core power Pad power Pad power I/O - strength 3 I/O - strength 3 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Pad power Pad power
Reset and Pin Test Reset State
Low Low Low - - Low Low Low Low Input - Low Low Input Low Input High - - - - High/Low High/Low Low Low Low Low - -
Pin No.
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 136 137
Signal
FB[1] VSS FB[0] COL[7]/ PTOUT COL[6] COL[5] COL[4] COL[3] COL[2] VDD VSS COL[1] COL[0] BUZ D[31] D[30] D[29] D[28] VSS A[27]/DRA[0] D[27] A[26]/DRA[1] D[26] A[25]/DRA[2] D[25] N/C A[24]/DRA[3] A[12] D[12]
Buffer
Reset and Pin Test Reset State
Input
I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 0 b I/O - strength 1 I/O - strength 1 I/O - strength 1 Pad power Pad power I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 - I/O - strength 2 I/O - strength 1 I/O - strength 2 I/O - strength 1 I/O - strength 1 I/O - strength 1
Input Input High High High High High High - - High High Low Low Low Low Low
Low Low Low Low Low Low
I/O - strength 1 I/O - strength 1 I/O - strength 1
Low Low Low
September 1997
PRELIMINARY DATA BOOK v2.0
PIN INFORMATION
13
CL-PS7111
Low-Power System-on-a-Chip
2.2.2
Pin No.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 165 166
Numeric Pin Listing (cont.)
Signal
D[24] A[23]/DRA[4] D[23] A[22]/DRA[5] D[22] A[21]/DRA[6] D[21] VSS A[20]/DRA[7] D[20] A[19]/DRA[8] D[19] A[18]/DRA[9] D[18] VDD VSS VSS A[17]/DRA[10] D[17] A[16]/DRA[11] D[16] A[15]/DRA[12] D[15] A[14] D[14] A[13] D[13] A[5] D[5] I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Pad power Pad power Core power I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1
Buffer
I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1
Reset and Pin Test Reset State
Low Low Low Low Low Low Low - Low Low Low Low Low Low - - - Low Low Low Low Low Low Low Low Low Low Low Low
Pin No.
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 187 188
Signal
A[11] VDD VSS D[11] A[10] D[10] A[9] D[9] A[8] D[8] A[7] VSS D[7] NBATCHG NEXTPWR BATOK NPOR MEDCHG/ NBROM NURESET VDD MOSCIN MOSCOUT VSS WAKEUP NPWRFL A[6] D[6] M DD[3]
Buffer
I/O - strength 1 Pad power Pad power I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1
Reset and Pin Test Reset State
Low - - Low Low Low Low Low Low Low Low -
I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Schmitt I/O I/O - strength 1 Schmitt I/O Osc power 3M6864 Osc 3M6864 Osc Osc power Schmitt I/O I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1
Low Input Input Input Input Input Input - X X - Input Input Input Low Low Low
14
PIN INFORMATION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
2.2.2
Pin No.
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
a b
Numeric Pin Listing (cont.)
Signal
VDD VSS A[4] D[4] A[3] D[3] A[2] VSS D[2] A[1] D[1] A[0] D[0] VSS VDD VSS VDD CL[2] CL[1] FRM I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Core power Core power Pad power Pad power I/O - strength 1 I/O - strength 1 I/O - strength 1
Buffer
Pad power Pad power I/O - strength 1 I/O - strength 1 I/O - strength 2 I/O - strength 1 I/O - strength 2
Reset and Pin Test Reset State
- - Low Low Low Low Low - Low Low Low Low Low - - - - Low Low Low
Pin No.
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
Signal
DD[2] VSS DD[1] DD[0] NRAS[1] NRAS[0] NCAS[3] NCAS[2] VDD VSS NCAS[1] NCAS[0] NMWE NMOE VSS NCS[0] NCS[1] NCS[2] NCS[3] NCS[4]
Buffer
I/O - strength 1
Reset and Pin Test Reset State
Low -
I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 Pad power Pad power I/O - strength 2 I/O - strength 2 I/O - strength 1 I/O - strength 1
Low Low High High High High - - High High High High -
I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1 I/O - strength 1
High High High High Low
Pins that are `no connect' (N/C) may have a signal. Also has analog bypass path for oscillator test.
September 1997
PRELIMINARY DATA BOOK v2.0
PIN INFORMATION
15
CL-PS7111
Low-Power System-on-a-Chip
3.
FUNCTIONAL DESCRIPTION
The CL-PS7111 is a single-device embedded controller designed to be used in low-cost and low-power applications such as hand-held personal organizers and hand-held internet browsers. There are other devices offered by Cirrus Logic (http://www.cirrus.com) that can be used around the CL-PS7111 to build a complete hand-held organizer, such as the CL-PS6700 PCMCIA controller, fax/modem chipsets, IR chipsets, codecs, and so on. The CL-PS7111 operates at 2.7 V (at 13.0 MHz) or 3.3 V (at 18.432 MHz). The various peripheral functions are built around an ARM710a microprocessor with 8 Kbytes of four-way set-associative cache. At 18.432 MHz the CL-PS7111 delivers approximately 15 MIPS of sustained performance and 18.4 MIPS of peak performance. This is approximately the same as a 33-MHz '486-based PC. The CL-PS7111 design is optimized for low-power dissipation. At 3.3 V and 18.432-MHz clock speed, the device typically dissipates 66 mW during the `operating state' (all oscillators, PLL, LCD, and processor clock running), 15 mW in the `idle state' (all oscillators and LCD running, but processor clock is halted), and 15 W in the `standby state' (no display and the main oscillator is shut down). At 2.7 V and 13.0 MHz, the respective values are 45 mW, 9 mW, and 15 W. The CL-PS7111 can interface to two banks of DRAM; each bank can be up to 256 Mbytes. There is also an interface for two ROM/flash and three expansion devices, each up to 256 Mbytes, and an interface to two CL-PS6700 PCMCIA controllers. The expansion devices could be additional ROM/SRAM/Flash. In addition, the CL-PS7111 provides 2 Kbytes of on-chip SRAM and internal 128 bytes of boot ROM. The SRAM may be used for critical program storage as well as LCD frame buffer. The start address of the frame buffer can reside anywhere in the addressable memory space. A system can therefore be designed with SRAM only for very low power applications. The boot ROM is hardware selectable on power-on or reset. This boot ROM initializes UART1 and downloads the application-specific main boot code into the on-chip SRAM. Once download is complete, execution jumps to the start of the on-chip SRAM. The CL-PS7111 supports a number of serial interfaces including two high-speed (115 kbps) UARTs with Rx and Tx FIFOs, a codec interfaces with FIFO and an additional synchronous serial interface. The CL-PS7111 is fabricated in a 0.6-m CMOS process and is fully static. The CL-PS7111 is available in a 208-pin VQFP package. Figure 3-1 shows a system-level block diagram for the CL-PS7111. As is shown, all the peripherals (such as the LCD module, keyboard, PCMCIA socket, and so on) can be added without any glue logic.
16
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
OSCILLATOR
CL-PS7111
NCS[4] PB0 EXPCLK DD[3:0] CL1 CL2 FRM M COL[7:0] PA[7:0] PB[7:0] PD[7:0] NRAS[1] NRAS[0] PE[2:0] NPOR NPWRFL BATOK NEXTPWR NBATCHG RUN WAKEUP DRIVE[1:0] FB[1:0 PCMSYNC PCMOUT PCMCLK PCMIN CS[n] WORD LEDDRV PHDIN RxD1/2 TxD1/2 DSR CTS DCD ADCCLK NADCCS ADCOUT ADCIN SMPCLK POWER SUPPLY UNIT AND COMPARATORS DC INPUT KEYBOARD LCD MODULE
D[31:0] PC CARD SOCKETS CL-PS6700 PC CARD CONTROLLER A[27:0] NMOE WRITE
x 16 DRAM x 16 DRAM
x 16 DRAM x 16 DRAM
NCAS[0] NCAS[1] NCAS[2] NCAS[3] NCS[0] NCS[1]
BATTERY
x 16 FLASH x 16 FLASH
x 16 ROM x 16 ROM
DC-TO-DC CONVERTERS
CODEC
EXTERNAL MEMORY MAPPED EXPANSION
IR LED AND PHOTODIODE
BUFFERS
NCS[2] NCS[3] ADDITIONAL I/O BUFFERS AND LATCHES
2x RS-232 TRANSEIVER
ADC
DIGITIZER
Figure 3-1. System-Level Block Diagram
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
17
CL-PS7111
Low-Power System-on-a-Chip
3.1
Main Functional Blocks
The CL-PS7111 is built around the ARM710a processor core. For a more detailed description of the ARM710a, refer to the ARM710a Macrocell Data Sheet (http://www.arm.com/). The main functional blocks in CL-PS7111 are:
q q q q q q q q q
ARM7 CPU core 8 Kbytes of unified instruction and data cache, a four-way set-associative Memory management unit (MMU) Two 16-bit general-purpose counters A 32-bit realtime clock and comparator On-chip boot ROM programmed with serial boot load sequence Advanced system state control and power management Direct interface to two CL-PS6700 PCMCIA controllers Expansion and ROM interface for four, five, or six 256-Mbyte expansion segments with independent wait state control DRAM controller supporting Fast Page mode, self-refresh in Standby mode, and both 16-bit and 32-bit-wide memory Programmable LCD controller with 1-, 4-, or 16-level grayscaler 2 Kbytes of SRAM for a small LCD frame buffer IrDA SIR protocol controller, capable of speeds up to 115.2 kbps Two full-duplex 16C550 style UARTs with two 16-byte FIFOs Main oscillator with PLL (phase locked loop) to generate the system clock of 18.432 MHz from a 3.6864-MHz crystal Optional external 13-MHz clock input A low-power 32.768-kHz oscillator Interrupt and fast interrupt controller 27 bits of general-purpose I/Os Two DC-to-DC converter interfaces One synchronous serial interface for Microwire(R) or SPI(R) peripherals (such as ADCs) Telephony codec interface with 16-byte FIFOs for transmit and receive Programmable frame buffer start address, allowing a system to be built using only external or internal SRAMs for memory, eliminating any need for DRAMs Pin test and device-isolation test logic External tracing support for debug
q
q q q q q
q q q q q q q q
q q
18
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Figure 3-2 shows a simplified functional block diagram of the CL-PS7111. All external memory and peripheral devices are connected to the 8-, 16-, or 32-bit data bus, using the external 28-bit address bus and control signals. Bus transfer times can be extended by using the EXPRDY signal to lengthen bus cycles. The maximum burst transfer rate of the external bus is approximately 70 Mbytes per sec. using 32-bit-wide DRAM at 18.432 MHz or 25 Mbytes per sec. using 16-bit-wide DRAM at 13 MHz.
13-MHZ INPUT 3.6864 MHZ 18.432-MHZ PLL
INTERNAL DATA BUS
D0-D31 NPOR, RUN, RESET, WAKEUP PB[0-1], CS[4-5] EXPCLK, WORD, CD[0-3], EXPRDY, WRITE MOE, MWE, NMOE, NMWE NRAS[0-1], NCAS[0-3] A[0-27], DRA[0-12]
ARM710a
32.768 KHZ 32.768-KHZ OSCILLATOR INTERRUPT CONTROLLER POWER MANAGEMENT MMU GPIO COUNTERS (2) RTC ARM7 MP CORE
STATE CONTROL
CL-PS6700 INTFC.
EINT[1-3], FIQ, MEDCHG BATOK, NEXTPWR PWRFL, BATCHG PORTS A, B, D (8-BIT) PORT E (3-BIT) KEYBOARD COLUMN DRIVERS (0-7) BUZZER DRIVE DC TO DC ADCCLK, ADCIN, ADCOUT, SMPCLK, RXFS, TXFS PCMCLK, PCMSYNC PCMIN, PCMOUT,
ROM/EXPANSION CONTROL 8-KBYTE CACHE DRAM CONTROLLER
INTERNAL ADDRESS BUS
MUX
PSU CONTROL
LCD CONTROLLER SRAM 2 KBYTE UART UART
LCD DRIVE
SYNC. SERIAL INTERFACE CODEC INTFC.
IRDA
LED AND PHOTODIODE ASYNC INTERFACE 1 ASYNC INTERFACE 2
ON-CHIP BOOT ROM
Figure 3-2. CL-PS7111 Block Diagram
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
19
CL-PS7111
Low-Power System-on-a-Chip
3.2
System Maximization
A maximum-configured system using the CL-PS7111 is shown in Figure 3-3. This system assumes all DRAMs and ROMs are 16-bit-wide devices. Watch-dog-timer tick rate is 1 Hz (in 13-MHz and 18.432-MHz modes). This 1-Hz clock is generated by a divider chain that divides the 64-Hz clock. The LSB of the RTCDIV field (SYSFLG[21:16]) provides the 1-Hz clock.
NOTE: The keyboard can be connected to more GPIO bits than illustrated to allow more than 64 keys. These extra pins, however, will not be wired into the WAKEUP pin functionality.
OSCILLATOR
CL-PS7111
DD[3:0] NCS[4] PB0 EXPCLK CL1 CL2 FRM M COL[7:0] PA[7:0] PB[7:0] PD[7:0] NRAS[1] NRAS[0] PE[2:0] NPOR NPWRFL BATOK NEXTPWR NBATCHG RUN WAKEUP DRIVE[1:0] FB[1:0] PCMSYNC PCMOUT PCMCLK PCMIN CS[n] WORD LEDDRV PHDIN RXD1/2 TXD1/2 DSR CTS DCD ADCCLK NADCCS ADCOUT ADCIN SMPCLK POWER SUPPLY UNIT AND COMPARATORS DC INPUT KEYBOARD LCD MODULE
D[31:0] PC CARD SOCETS CL-PS6700 PC CARD CONTROLLER A[27:0] NMOE WRITE
x 16 DRAM x 16 DRAM
x 16 DRAM x 16 DRAM
NCAS[0] NCAS[1] NCAS[2] NCAS[3] NCS[0] NCS[1]
BATTERY
x 16 FLASH x 16 FLASH
x 16 ROM x 16 ROM
DC-TO-DC CONVERTERS
CODEC
EXTERNAL MEMORY MAPPED EXPANSION
IR LED AND PHOTODIODE
BUFFERS 2x RS-232 TRANSEIVER
NCS[2] NCS[3] ADDITIONAL I/O BUFFERS AND LATCHES
ADC
DIGITIZER
Figure 3-3. A Maximized CL-PS7111-Based System
20
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
3.3
Endian Functionality
The CL-PS7111 uses a little-endian configuration for internal registers. However, it is possible to connect the device to a big-endian external memory system. Table 3-1 and Table 3-2 demonstrate the behavior of the CL-PS7111 in big- and little-endian mode, including the effect of performing non-aligned word accesses. The register definitions in Chapter 5 define the behavior of the internal CL-PS7111 registers in big-endian mode in more detail. The NCAS[3:0] lines for DRAM must always be connected with the same byte lane regardless of the endian functionality, so that NCAS[0] is connected with D[7:0], and NCAS[3] with D[31:24]. In a littleendian system, NCAS[0] is asserted for a read/write to byte 0 of DRAM and in a big-endian system NCAS[3] is asserted to access byte 0 of DRAM. Table 3-1. Endian Functionality and Read Operations
Byte Lanes to Memory/Ports/Registers Address (W/B) Data in Memory 7:0
Word + 0 (W) Word + 1 (W) Word + 2 (W) Word + 3 (W) Word + 0 (B) Word + 0 (B) Word + 0 (B) Word + 0 (B)
a
R0 Contents Bigendian
11223344 44112233 33441122 22334411 00000011 00000022 00000033 00000044
Big-endian Memory 15:8
33 33 33 33 X X 33 X
Little-endian Memory 7:0
44 44 44 44 44 X X X
23:16
22 22 22 22 X 22 X X
31:24
11 11 11 11 11 X X X
15:8
33 33 33 33 X 33 X X
23:16
22 22 22 22 X X 22 X
31:24
11 11 11 11 X X X 11
Littleendian
11223344 44112233 33441122 22334411 00000044 00000033 00000022 00000011
11223344 11223344 11223344 11223344 11223344 11223344 11223344 11223344
44 44 44 44 Xa X X 44
X indicates a `don't care' state.
Table 3-2.
Endian Functionality and Write Operations
Byte Lanes to Memory/Ports/Registers
Address (W/B)
Register Contents 7:0
Big-endian Memory 15:8
33 33 33 33 44
Little-endian Memory 7:0
44 44 44 44 44
23:16
22 22 22 22 44
31:24
11 11 11 11 44 a
15:8
33 33 33 33 44
23:16
22 22 22 22 44
31:24
11 11 11 11 44
Word + 0 (W) Word + 1 (W) Word + 2 (W) Word + 3 (W) Word + 0 (B)
11223344 11223344 11223344 11223344 11223344
44 44 44 44 44
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
21
CL-PS7111
Low-Power System-on-a-Chip
Table 3-2.
Endian Functionality and Write Operations (cont.)
Byte Lanes to Memory/Ports/Registers
Address (W/B)
Register Contents 7:0
Big-endian Memory 15:8
44 44 44
Little-endian Memory 7:0
44 44 44
23:16
44 44 44
31:24
44 44 44
15:8
44 44 44
23:16
44 44 44
31:24
44 44 44
Word + 0 (B) Word + 0 (B) Word + 0 (B)
a
11223344 11223344 11223344
44 44 44
Bold indicates active byte lane.
3.4
CPU Core
The ARM710a microprocessor is a 32-bit RISC processor with an 8-Kbyte unified cache. This cache has 512 lines of four words arranged as a four-way set association. The cache is directly connected to the ARM710a microprocessor and caches the virtual address from the processor. The MMU translates the virtual address into a physical address, and contains a 64-entry TLB (translation look aside buffer) and is post cache; that is, it only translates external memory references (cache misses) to save power. The big end bit in the ARM710a control register sets whether the CL-PS7111 treats words in memory as being stored in big-endian or little-endian format. See Chapters 5 and 11 of the ARM710a Macrocell Data Sheet for more information on the control register. Memory is viewed as a linear collection of bytes numbered upwards from zero. Bytes 0 to 3 hold the first stored word, bytes 4 to 7 the second, and so on. In the little-endian scheme, the lowest numbered byte in a word is considered to be the least-significant byte of the word, and the highest numbered byte is the most-significant. Byte 0 of the memory system should be connected to data lines 7 through 0 (D[7:0]) in this scheme. In the big-endian scheme, the most-significant byte of a word is stored at the lowest numbered byte and the least-significant byte is stored at the highest numbered byte. However, the memory controller of the CL-PS7111 will align the byte lane such that byte 0 of the memory system may always be connected to D[7:0]. Load and store are the only instructions affected by the endian functionality. For details on the ARM7 instruction set and CPU architecture, refer to the ARM710a Macrocell Data Sheet.
3.5
Counters
The CL-PS7111 has two integrated identical timer counters: TC1 and TC2. Each timer counter has an associated 16-bit read/write data register and control bits in the System Control registers. Each counter is immediately loaded with the value written to the data register. This value decrements on the second active clock edge, arriving after the write (after the first complete period of the clock). When the timer counter underflows (reaches 0) the appropriate interrupt asserts. The timer counters can be read at any time. The clock source and mode are selected by writing to various bits in the System Control registers. Clock sources, when running from an 18.432-MHz master clock, are 512kHz and 2 kHz. When using the 13-MHz source, the default frequencies are 541 kHz and 2.115 kHz, respectively. However, in non-PLL mode, an optional divide by 26 frequency can be generated, thus generating a 500-kHz frequency when using the 13-MHz source. This divider is enabled by setting OSTB (Operating System Timing in SYSCON2[12]). When OSTB is set high to select the 500-kHz mode, the 500-kHz frequency is routed to the timers instead of 512 kHz. This does not affect the frequencies derived from any of the other internal peripherals. 22 September 1997
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
CL-PS7111
Low-Power System-on-a-Chip
The timer counters can operate in two modes: free-running or prescale. 3.5.1 Free-Running Mode
In free-running mode, the counter wraps around to 0xFFFF, then underflows and continues to count down. Any value written to TC1 or TC2 decrements on the second edge of the selected clock. 3.5.2 Prescale Mode
In prescale mode, the value written to TC1 or TC2 automatically reloads when the counter underflows. Any value written to TC1 or TC2 decrements on the second edge of the selected clock. This mode can produce a programmable frequency to drive the buzzer or generate a periodic interrupt.
3.6
Realtime Clock
The CL-PS7111 contains a 32-bit RTC (realtime clock). The RTC is written and read the same as the timer counters, but is 32 bits wide. The RTC is always clocked at 1 Hz, generated from the 32.768-kHz oscillator. It also contains a 32-bit output-match register, that can be programmed to generate an interrupt when the time in the RTC matches a specific time written to this register. The RTC is only reset by an NPOR cold reset. Because the Realtime Clock Data register is updated from the 1-Hz clock derived from the 32-kHz source (asynchronous to the main memory system clock) the data register must always be read twice to ensure a valid and stable reading. This also applies when reading back the RTCDIV field (SYSFLG1[21:16]), reflecting the status of the six LSBs of the realtime clock counter.
3.7
State Control
The CL-PS7111 supports three operating states: standby, idle, and operating. In the following descriptions, the RUN/CLKEN pin is used for the run functionality or the CLKEN functionality, allowing an external oscillator to be disabled in 13-MHz mode. Either RUN or CLKEN functionality is selected according to the state of CLKENSL bit (SYSCON2[[13]). Table 3-3 shows how different modules in CL-PS7111 behave in different states. Table 3-3.
Module
DRAM Ctrl UARTs LCD FIFO LCD ADC Interface Codec Timers RTC DC-to-DC CPU
Peripheral Status in Different Operating States
Operating
ON ON ON ON ON ON ON ON ON ON
Idle
ON ON ON ON ON ON ON ON ON OFF
Standby
Self refresh OFF Reset OFF OFF OFF OFF ON OFF OFF
NPOR Reset
OFF Reset Reset Reset Reset Reset Reset ON Reset Reset
NURESET Reset
Self refresh Reset Reset Reset Reset Reset Reset ON Reset Reset
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
23
CL-PS7111
Low-Power System-on-a-Chip
Table 3-3.
Module
Interrupt Ctrl PLL/CLKEN
Peripheral Status in Different Operating States (cont.)
Operating
ON ON
Idle
ON ON
Standby
ON OFF
NPOR Reset
Reset OFF
NURESET Reset
Reset OFF
Standby State
The standby state is as if the computer is switched off, there is no display and the main oscillator is shut down. When the 18.432-MHz mode is selected, the PLL will be shut down. In 13-MHz mode, if the CLKENSL bit is set low, then the CLKEN signal will be forced low and can disable an external oscillator. Only the realtime clock is running. The device automatically enters the standby state after power is first applied or after a system reset. The only exit from the standby state is to the operating state. Before entering the standby state, if external I/O devices (such as CL-PS6700s connected to NCS[4] or NCS[5]) are in use, the software must check for idle before issuing the write to the standby location. When in standby, all system memory and states are maintained and the system clock is kept current. The PLL/on-chip oscillator or external oscillator is disabled, and the system is static except for the low-power (32-kHz) watch crystal oscillator and divider chain to the realtime clock. The RUN signal is driven low. This signal can be used externally in the system to power down other system modules.
Idle State
The idle state means the device is functioning, but the processor clock is halted while it waits for an event, such as a key press, to generate an interrupt (a rising edge on the external wake-up pin or a rising edge on the decode of Port A bits 0-5 or 7). The PLL (in 18.432-MHz mode) or the external 13-MHz clock source always remains active in the idle state.
Operating State
The operating state is the same as the idle state, except that the processor clock is running. The device is forced into the standby state at power up or reset by the NPOR signal (called a `cold' reset) and is the only completely asynchronous reset to the CL-PS7111. The transition to the operating state is caused by a rising edge on the WAKEUP input signal, or by a rising edge on any of the Port A bits 0-5 or 7 (corresponding to keyboard input). After a cold reset, these are the only possible events for waking up the device. When entering the standby state from the operating state, the software should leave some interrupt sources enabled, meaning there is a third possible means of exit from the standby state if an enabled interrupt is generated (for example, the RTC interrupt). Once self-refresh is enabled for the DRAMs, any transition to the standby state forces the DRAMs to the self-refresh state before stopping the PLL or external oscillator. Once in the operating state, the idle state is entered by writing to a special internal memory location in the CL-PS7111. If an interrupt or wake-up event occurs, execution of the next instruction continues in the operating state. A write to the STDBY-WAKEUP internal memory location causes the transition from the operating state to the standby state. The system can also be forced into the standby state by hardware if the NPWRFL or NURESET inputs are forced low. In this case, the transition is synchronized with DRAM cycles to avoid errors or short cycles.
24
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
The system only transitions to the operating state from the standby state if either the NEXTPWR input is low or the BATOK and NPWRFL inputs are high. This prevents the system attempting to start when the power supply is inadequate (for example, when the main batteries are flat corresponding to a low level in NPWRFL or BATOK). From standby mode, when the WAKEUP signal is applied, the CL-PS7111 initializes into a ready-to-start state and waits for the first clocks, although the CPU is still held in reset. When the first clock is applied, there is a delay of about eight clocks before the CPU is first clocked. Figure 3-4 is a state diagram for the CL-PS7111.
INTERRUPT OR RISING WAKE-UP STANDBY WRITE TO STANDBY LOCATION, POWER FAIL OR USER RESET OPERATING
INTERRUPT, POWER FAIL WAKE-UP OR USER RESET
WRITE TO HALT LOCATION
IDLE
Figure 3-4. State Diagram
3.8
Expansion and ROM Interface
Six separate linear memory or expansion segments are decoded by the CL-PS7111, two of which can be reserved for two PCMCIA cards each interfacing to the single device CL-PS6700. Each segment is 256 Mbytes and can be interfaced by using a conventional SRAM-like interface. Aside from the six segments, an additional segment is dedicated for the on-chip 2 Kbytes of SRAM and is fully decoded such that the addresses for the SRAM do not repeat within the bank. Any of the six segments can be individually programmed to be 8-, 16-, or 32-bits wide, support Page mode access, and execute from 1-4 wait states for nonsequential accesses, and 0-3 for burst mode accesses. The zero-wait-state sequential access feature is designed to support burst mode ROMs; for writable memory devices that use the NMWE pin, zero-wait-state sequential accesses are not permitted and one wait state is the minimum that should be programmed in the sequential field of the appropriate MEMCFG register. Bus cycles can also be extended using the EXPRDY input signal. Page mode access is accomplished by running up to four accesses together. This can significantly improve bus bandwidth to devices such as ROMs. Sequential Burst mode access is always faulted (the bus returned to idle) after four accesses, regardless of bus width to allow DMA and refresh cycles to occur. Bits 5 and 6 of the SYSCON2 register (see Section 5.38 on page 70) independently enable the interfaces to the CL-PS6700 (PCMCIA slot drivers). When either of these interfaces are enabled, the corresponding device select (NCS4 and/or NCS5) becomes dedicated to that CL-PS6700 interface. The state of SYSCON2[5] determines the function of device select NCS4 (such as the CL-PS6700 interface or standard device select functionality); SYSCON2[6] controls NCS5 in a similar way. There is no interaction between these bits. September 1997 25
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
CL-PS7111
Low-Power System-on-a-Chip
For applications that require a small display (such as an alphanumeric one-way pager), on-chip SRAM can be used as the frame buffer and no external DRAM are required. The width of the boot device can be chosen by selecting values of PE[1] and PE[0] during power on reset. These inputs are latched by the rising edge of NPOR to select the boot option. See Table 3-4 for boot options. Table 3-4.
PE1
0 0 1 1
Boot Options
PE0
0 1 0 1
Boot Block (NCS[0])
32 bit 8 bit 16 bit Undefined
3.8.1
CL-PS7111 Boot ROM
The 128 bytes of on-chip Boot ROM contain an instruction sequence to initialize the device, then configures UART1 to receive serial data that will then be placed in the 2-Kbyte on-chip SRAM. Once the download is complete, execution will start at the beginning of the on-chip SRAM. This would allow (for example) code to be downloaded to program system flash during a product's manufacturing process. See Appendix A for details on the ROM Boot Code with comments to describe the stages of execution. Selection of the Boot ROM option is determined by the state of the MEDCHG pin during power-on reset. If MEDCHG is high while NPOR is active, then the CL-PS7111 will boot from an external memory device connected to NCS0 (normal boot mode). If MEDCHG is low, then the boot will be from the on-chip ROM. Note that in both cases, following the deassertion of power on reset, the CL-PS7111 will be in standby mode and requires a low-to-high transition on the external wake-up pin to actually start the boot sequence. The effect of booting from the on-chip Boot ROM is to reverse the decoding for all device selects internally. In addition, the sense of bit 1 in the Memory Configuration register is reversed so that 00 = 8 bit access. Table 3-5 lists the device select address ranges, and Table 3-6 shows the bus width field combinations that apply after the device has been booted from the on-chip Boot ROM. The control signal for the boot option is latched by NPOR, which means that the remapping of addresses and bus widths will continue to apply until NPOR is asserted again. After booting from the Boot ROM, the contents of the Boot ROM can be read back from address 0x00000000 and in normal mode of operation the Boot ROM, contents can be read back from address 0x70000000. Table 3-5. Device Select Address Ranges After Boot From On-Chip Boot ROM
Chip Select
CS[7] (internal only) CS[6] (internal only) NCS[5] NCS[4]
Address Range (Hexadecimal)
0000.0000 - 0FFF.FFFF 1000.0000 - 1FFF.FFFF 2000.0000 - 2FFF.FFFF 3000.0000 - 3FFF.FFFF
26
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Table 3-5.
Device Select Address Ranges After Boot From On-Chip Boot ROM (cont.)
Chip Select
NCS[3] NCS[2] NCS[1] NCS[0]
Address Range (Hexadecimal)
4000.0000 - 4FFF.FFFF 5000.0000 - 5FFF.FFFF 6000.0000 - 6FFF.FFFF 7000.0000 - 7FFF.FFFF
Table 3-6.
Expansion And ROM Interface Bus Width After Boot From On-Chip Boot ROM
Expansion Transfer Mode
8-bit-wide bus access Reserved 32-bit-wide bus access 16-bit-wide bus access
Bus Width Field In ROM Test Mode
00 01 10 11
3.8.2
CL-PS6700 PCMCIA controller interface
Figure 3-5 shows the interface between the CL-PS6700 and the CL-PS7111. For details on the CL-PS6700, please refer to the CL-PS6700 Data Book (available under NDA).
5 V 3 V VPP PCTL[2:0] POWER MODULE PCM_VS[2:1] PCM_CD[2:1] PCM_BVD[2:1] PCM_WP PCM_RDY PCM_WAIT PCM_RESET PCM_CE[2:1] PCM_REG_L PCM_OE_L PCM_WE_L PCM_IORD_L PCM_IOWR_L PCM_A[25:0] PCM_D[15:0] VCC VPP
SYS_RES_L EXPCLK NCS[5:4] WRITE PCLK PCE_L I/O POWER = V3V-O I/O POWER = V5V-O PTYPE
CL-PS7111
CL-PS6700
PB[1:0] NEINT2 RUN
PRDY PIRQ_L PSLEEP_L
PCMCIA SLOT
D[15:0]
MD[15:0]
Figure 3-5. CL-PS7111-to-CL-PS6700 Interface September 1997 27
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
CL-PS7111
Low-Power System-on-a-Chip
Two expansion memory areas are dedicated to supporting up to two CL-PS6700 PCMCIA controllers. These are selected by NCS[4] and NCS[5] (once enabled by bits 5 and 6 of SYSCON2 respectively). For efficient, low-power operation, both address and data are carried on the lower 16 bits of the CL-PS7111 data bus. Accesses are initiated by a read or write to or from the area of memory allocated for NCS[4] or NCS[5]. The memory map within each of these areas is segmented to allow different types of PCMCIA access to take place for attribute, I/O, and common memory space. The CL-PS6700 internal registers are memory mapped within the address space as shown in Table 3-7. Table 3-7. CL-PS6700 Memory Map
Addresses for CL-PS6700 Interface 1
0x40000000 - 0x43FFFFFF 0x44000000 - 0x47FFFFFF 0x48000000 - 0x4BFFFFFF 0x4C000000 - 0x4FFFFFFF
Access Type
Attribute I/O Common Memory CL-PS6700 registers
Addresses for CL-PS6700 Interface 2
0x50000000 - 0x53FFFFFF 0x54000000 - 0x57FFFFFF 0x58000000 - 0x5BFFFFFF 0x5C000000 - 0x5FFFFFFF
An access to one of the CL-PS6700 devices will occur according to the following protocol and the timing in the AC timing specifications in Chapter 6: ELECTRICAL SPECIFICATIONS on page 71. A transaction is initiated by an access to the NCS4 or NCS5 area. The chip select is asserted and, on the first clock, the upper 10 bits of the PCMCIA address (along with 6 bits of size, space and slot information) are put out onto the lower 16 bits of the CL-PS7111 data bus. Only word and single-byte accesses are supported and the slot field is hardcoded to `11', as the chip selects are used to select the device to be accessed. This avoids the need to configure the interface during reset. The space field is made directly from the A26 and A27 CPU address bits, according to the decode shown in Table 3-8. The size file is forced to `11' if a word access is required, or `00' for a byte access. On the second clock cycle, the remaining 16 bits of the PCMCIA address are multiplexed out onto the lower 16 bits of the data bus. If the transaction selected is a CL-PS6700 register transaction, or a write to the PCMCIA card (assuming there is space available in the write buffer) then the access will continue on the following two clock cycles, during which the upper and lower halves of the word to be read or written will be put onto the lower 16 bits of the main data bus. Table 3-8. Space Field Decoding
PCMCIA Memory Space
Attribute I/O Common Memory CL-PS6700 registers
Space Field Value
00 01 10 11
PCMCIA writes can be posted to the CL-PS6700 device with the same timing as CL-PS6700 internal register writes, and are completed by the CL-PS6700 device independent of processor activity. If a posted write times out or fails to complete, the CL-PS6700 will issue an interrupt. When the write queue is already full, the PRDY signal deasserts and the transaction waits pending an available slot in the queue. In this case the CPU waits until the write can be posted successfully. The `ptype' signal to the CL-PS6700 should be connected to the CL-PS7111 WRITE output. During PCMCIA accesses, the polarity of this pin changes and becomes low to signify a write and high to signify a 28 September 1997
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
CL-PS7111
Low-Power System-on-a-Chip
read, becoming valid with the first half word of the address. During the second half word of the address it is always forced high to meet the requirement of the CL-PS6700. The PRDY signals from each of the two CL-PS6700 devices are connected to Port B bits 0 and 1, respectively. When the PCMCIA 1 or 2 control bits in the SYSCON2 register are deasserted, these port bits are available for GPIO. Each PRDY indicates that the CL-PS6700 device driving the PRDY signal is busy accessing cards if there is no transaction in progress between the CL-PS7111 and CL-PS6700. If a PCMCIA access is attempted while the device is busy, the CPU waits for the card to become available, but DMA for the LCD continues. The CL-PS7111 can access the registers in the CL-PS6700, regardless of the state of the PRDY signal. If the CL-PS7111 needs to access the PCMCIA card through the CL-PS6700, it waits until the PRDY signal is high before initiating a transfer request. Once a request is sent, PRDY indicates whether data is available. For PCMCIA reads, the PRDY signal from the CL-PS6700 deasserts until the read data is ready, when it is reasserted and the access completes in the same way as a register access. For a byte access, only one 16-bit data transfer is required to complete the access. While PRDY is deasserted, the device select to the CL-PS6700 is deasserted and the main bus released so that DMA for the LCD controller can continue in the background. The CL-PS7111 will rearbitrate for control of the bus when the PRDY signal is reasserted to indicate that the read or write transaction can complete. The CPU is always stalled until the PCMCIA access completes. A card read operation can be split into a request cycle and a data cycle, or combined into a single request/data transfer cycle, depending on whether the data requested from the card is available in the prefetch queue of the selected CL-PS6700. The request portion of the cycle for a card read is similar to the request phase for a card write previously described. If the requested data is available in the prefetch queue, the CL-PS6700 asserts PRDY before the rising edge of the third clock and the CL-PS7111 continues the cycle to read the data. Otherwise, PRDY is deasserted and the request cycle completes. The CL-PS7111 then allows the DMA controller to gain control of the bus allowing LCD refreshes to continue. When the CL-PS6700 is ready with the data, it asserts the PRDY signal. The CL-PS7111 then arbitrates for the bus and once the request is granted the suspended read cycle resumes. The CL-PS7111 resumes the cycle by asserting the appropriate chip select and data transfers on the next two clocks. There is no support within the CL-PS7111 for detecting time-outs. The CL-PS6700 must be programmed to force the cycle to complete (with invalid data for a read) and generate an interrupt if a read or write access is timed out. The system software can then determine which access was not successfully completed by reading the status registers within the CL-PS6700. DMA is supported only by emulation. That is, the CL-PS6700 will assert its PDREQ (open-drain output, register external pull-up is required) signal to issue a DMA request. This output will be connected to one of the CL-PS7111 external interrupts and can be used to interrupt the CPU so software can service the DMA request under program control. Either of the two CL-PS6700 devices can generate an interrupt PIRQ (pull-up required on PIRQ). The PIRQ output is open-drain on the CL-PS6700. If there are two CL-PS6700, they can be wire-OR'ed to the same interrupt, which can be connected to one of the CL-PS7111 active-low external interrupt sources. On the receipt of an interrupt, the CPU can read the Interrupt Status registers on the CL-PS6700 to determine the cause of the interrupt. All transactions are synchronous to the EXPCLK output from the CL-PS7111 (in 18.432-MHz mode) or external 13-MHz clock. The RUN signal, or a GPIO signal from CL-PS7111, can be connected to the
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
29
CL-PS7111
Low-Power System-on-a-Chip
PSLEEP pin of the CL-PS6700, allowing them to be put into a power saving state before the CL-PS7111 enters standby mode.
NOTE: It is essential that the software monitors the appropriate status registers within the CL-PS6700 to ensure no pending posted bus transactions before standby mode is entered. Failure to do this will result in incomplete PCMCIA accesses.
3.9
DRAM Controller
The DRAM controller in the CL-PS7111 allows all connections to directly interface up to two banks of DRAM. The width of the memory interface is programmable to 16-bit or 32-bit. The two banks have to be the same width. Each bank can be up to 256 Mbytes. Two RAS lines and four CAS lines are provided, one CAS line per byte line. CAS0 enables D[7:0] in little-endian as well as big-endian modes. The DRAM device size is not programmable. Therefore, devices used that are smaller than the largest size supported (1-Gbit), lead to a segmented memory map, each bank being separated by 256 Mbytes. Segments smaller than the bank size repeat within the bank. Table 3-9 shows the mapping of physical address-toDRAM row and column address. This mapping has been organized to support any DRAM device size from 4--Mbit to 1-Gbit with a `square' row and column configuration (the number of column addresses equals the number of row addresses). If a non-square DRAM is used, further fragmentation of the memory map can occur, although the smallest contiguous segment is always 1-Mbyte. With proper mapping of pages and sections by the MMU, contiguous memory blocks can be created. The DRAM controller breaks all sequential access that the minimum page sizes defined support. Table 3-9.
Memory Address
0 1 2 3 4 5 6 7 8 9 10 11 12
a
Physical-to-DRAM Address Mapping
DRAM Column x16 mode
A1 a A2 A3 A4 A5 A6 A7 A8 A18 A20 A22 A24 A26
DRAM Column x32 mode
A2 A3 A4 A5 A6 A7 A8 A9 A19 A21 A23 A25 A27
DRAM Row x16 mode
A9 A10 A11 A12 A13 A14 A15 A16 A17 A19 A21 A23 A25
DRAM Row x32 mode
A10 A11 A12 A13 A14 A15 A16 A17 A18 A20 A22 A24 A26
Pin Name
A27/DRA0 A26/DRA1 A25/DRA2 A24/DRA3 A23/DRA4 A22/DRA5 A21/DRA6 A20/DRA7 A19/DRA8 A18/DRA9 A17/DRA10 A16/DRA11 A15/DRA12
This bit will be generated by the DRAM controller.
30
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
An example of the DRAM connections for a typical system can be found in Figure 3-3 on page 20. Table 3-10 and Table 3-11 show the address mapping for various DRAMs with square and non-square row and address inputs, assuming two x16 devices are connected to each RAS line, with 32-bit-wide DRAM operation selected. This mapping is then repeated every 256 Mbytes for each DRAM bank. n is derived as shown in Equation 3-1.
n = 0 x C + bank number
where, 0 x C for bank 0 0 x D for bank 1)
Equation 3-1
Table 3-10. DRAM Address Mapping for an External 32-Bit-Wide DRAM Memory System
Device Size
4 Mbits 16 Mbits
Address Configuration
9 Row x 9 Column 10 Row x 10 Column
Total Size of Bank
1 Mbyte 4 Mbytes
Address Range of Segment(s)
n000.0000-n00F.FFFF n000.0000-n03F.FFFF n000.0000- n007.FFFF n010.0000-n017.FFFF n040.0000-n047.FFFF n050.0000-n057.FFFF n100.0000-n107.FFFF n110.0000-n117.FFFF n140.0000-n147.FFFF n150.0000-n157.FFFF n000.0000-n0FF.FFFF n000.0000-n01F.FFFF n040.0000-n05F.FFFF n100.0000-n11F.FFFF n140.0000-n15F.FFFF n400.0000-n41F.FFFF n440.0000-n45F.FFFF n500.0000-n51F.FFFF n540.0000-n55F.FFFF n000.0000-n3FF.FFFF n000.0000-nFFF.FFFF
Size of Segment(s)
1 Mbyte 4 Mbytes
16 Mbits
12 Row x 8 Column
4 Mbytes
512 Kbytes
64 Mbits
11 Row x 11 Column
16 Mbytes
16 Mbytes
64 Mbits
13 Row x 9 Column
16 Mbytes
2 Mbytes
256 Mbits 1 Gbit
12 Row x 12 Column 13 Row x 13 Column
64 Mbytes 256 Mbytes
64 Mbytes 256 Mbytes
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
31
CL-PS7111
Low-Power System-on-a-Chip
Table 3-11. DRAM Address Mapping for a 16-bit DRAM Memory System
Device Size
4 Mbits 16 Mbits
Address Configuration
9 Row x 9 Column 10 Row x 10 Column
Total Size of Bank
0.5 Mbyte 2 Mbytes
Address Range of Segment(s)
n000.0000- n007.FFFF n000.0000-n01F.FFFF n000.0000-n003.FFFF n008.0000-n00B.FFFF n020.0000-n023.FFFF n028.0000-n02B.FFFF n080.0000-n083.FFFF n088.0000-n08B.FFFF n0A0.0000-n0A3.FFFF n0A8.0000-n0AB.FFFF n000.0000-n07F.FFFF n000.0000-n00F.FFFF n020.0000-n02F.FFFF n080.0000-n08F.FFFF n0A0.0000-n0AF.FFFF n200.0000-n20F.FFFF n220.0000-n22F.FFFF n280.0000-n28F.FFFF n2A0.0000-n2AF.FFFF n000.0000-n1FF.FFFF n000.0000-n7FF.FFFF
Size of Segment(s)
0.5 Mbyte 2 Mbytes
16 Mbits
12 Row x 8 Column
2 Mbytes
256 Kbytes
64 Mbits
11 Row x 11 Column
8 Mbytes
8 Mbytes
64 Mbits
13 Row x 9 Column
8 Mbytes
1 Mbyte
256 Mbits 1 Gbit
12 Row x 12 Column 13 Row x 13 Column
32 Mbytes 128 Mbytes
32 Mbytes 128 Mbytes
The DRAM controller contains a programmable refresh counter. The refresh rate is controlled using DRFPR (DRAM Refresh Period register ). Sixteen- or 32-bit DRAM selection is made based on the value of SYSCON2[2]. Both banks must have the same width. SYSCON2 0 x 8000 1100 Bit 2 (DRAMSZ) 0 = 32-bit DRAM 1 = 16-bit DRAM The default DRAM width is 32 bits, because SYSCON2 is reset to all zeroes at power up.
32
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
3.10
LCD Controller
The LCD controller provides all the necessary control signals to interface directly to a single-scan panel multiplexed LCD. The panel size is programmable and can be any width (line length) from 16 to 1024 pixels in 16-pixel increments. The total video frame size is programmable up to 128 Kbytes. This equates to a theoretical maximum panel size of 1024 x 256 pixels in 4-bits-per-pixel mode. The video frame buffer can be located in any portion of memory controlled by the chip select or system DRAM. Its start address will be fixed at address 0xC000.0000 within each chip select or DRAM bank. The start address of the LCD frame buffer is defined in FBADDR register [3:0]. The default start address is 0xC000 0000 (FBADRR =0x0C). A system can be built using no DRAM. One option is to use the on-chip 2-Kbyte SRAM as the LCD buffer for small panels. In this option, the LCD frame buffer start address must be set to 0x6. Programming of FBADDR is permitted only when the LCD is disabled. (This is to avoid possible cycle corruption when changing the register contents while a LCD DMA cycle is in progress.) There is no hardware protection to prevent this, so it is necessary for the software to disable the LCD controller before reprogramming FBADDR. The frame buffer start address must not be programmed to 0x4 or 0x5 if either CL-PS6700 interface is in use (PCMEN1 or 2 bits in the SYSCON2 register enabled).
NOTE: Never program FBADDR to 0x7 or 0x8 as these are the locations for the on-chip Boot ROM and internal registers.
The screen is mapped to the frame buffer as one contiguous block where each horizontal line of pixels is mapped to a set of consecutive bytes or words in the frame buffer. The frame buffer can be accessed word-wide as pixel 0 is mapped to the LSB in the buffer, the pixels arranged in a little-endian scheme. The pixel bit rate and the LCD refresh rate can be programmed from 18432 - 576 kHz when operating in the 18.432-MHz mode, or 1300 - 203 kHz when operating from a 13-MHz clock. The LCD controller is programmed by writing to LCDCON. Programming LCDCON while the LCD controller is enabled causes the DMA address generator to be reset and a new frame to be started immediately. The LCD controller also contains two 32-bit palette registers, allowing any 4-, 2-, or 1-bit pixel value to be mapped to any one of the available 16 grayscale values. The required DMA bandwidth to support a half-VGA panel (640 x 240) displaying 4-bits per pixel data at an 80-Hz refresh rate is approximately 6.2 Mbytes/sec. Assuming the frame buffer is stored in DRAM, the maximum theoretical bandwidth available is 43 Mbytes/sec. at 18.432 MHz, or 29.7 Mbytes/sec. at 13 MHz. If 16-bit DRAM is used, this drops to 15 Mbytes/sec., still leaving sufficient bandwidth for other memory activity. The LCD controller uses a 9-stage 32-bit-wide FIFO to buffer display data, which is replenished by hardware DMA under the control of the CL-PS7111 DMA controller. The LCD controller module requests new data when there are five words remaining in the FIFO, meaning for a half-VGA panel displaying 4-bitsperpixel data at an 80-Hz refresh rate, the maximum allowable DMA latency is approximately 3.2 s. Assuming the frame buffer is located in DRAM memory, the worst case latency is almost exactly 3.2 s, with 13-MHz page mode cycles. If 16-bit-wide DRAM is being used, the worst case latency will double. In this case, the maximum permissible display size is halved to approximately 320 x 240 pixels, assuming the same refresh rate must be maintained. Figure 3-6 shows the organization of the video map for all combinations of bits per pixel.
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
33
CL-PS7111
Low-Power System-on-a-Chip
PIXEL 1
PIXEL 2
PIXEL 3
PIXEL 4
GRAYSCALE
GRAYSCALE
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
BIT 7
4-BITS-PER-PIXEL
PIXEL 1 PIXEL 2 PIXEL 3 PIXEL 4
GRAYSCALE
GRAYSCALE
GRAYSCALE
GRAYSCALE
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
BIT 7
2-BITS-PER-PIXEL
PIXEL 1 PIXEL 2 PIXEL 3 PIXEL 4
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
BIT 7
1-BIT-PER-PIXEL
Figure 3-6. Video Buffer Mapping The refresh rate is not affected by the number of bits per pixel. However, the LCD controller fetches twice the data per refresh for 4-bits-per-pixel compared to 2-bits-per-pixel. The main reason for reducing the number of bits per pixel is to reduce the power consumption of the memory where the video buffer is mapped.
3.11
Two Internal UARTs and SIR Encoder
The CL-PS7111 contains two built-in UART, UART1 and UART2. Both UARTs support bit rates of up to 115.2 kbps and contain two 16-byte FIFOs for receive and transmit. UART1 supports the three modem-control input signals: CTS, DSR, and DCD. The additional RI input modem control line is not supported. Output modem control lines (such as RTS and DTR) are not explicitly supported, but can be implemented using bits from the GPIO ports in the CL-PS7111. UART2 has only receive and transmit pins.
34
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
UART operation and line speed are controlled by UBRLCR1 (UART Bit Rate and Line Control register) and two registers. Three interrupts are generated by UART1, Rx, Tx, and Modem Status Changed. Only two interrupts are generated by UART2, Rx and Tx. The Rx interrupt asserts when the FIFO becomes half full or the FIFO is non-empty longer than three character-length times and no more characters are received. The Tx interrupt asserts when the FIFO buffer reaches half empty. The Modem Status Changed interrupt for UART1 is generated when any of the modem status bits change state. Framing and parity errors are detected as each byte is received and pushed onto the Rx FIFO. An overrun error immediately generates an Rx interrupt. All error bits can be read from the 11-bit-wide data register. The FIFO can also be programmed to be only one byte deep (such as a conventional UART with double buffering). The CL-PS7111 also contains an IrDA SIR protocol encoder. This is a post-processing stage on the output of UART1. This encoder can be optionally switched into the Tx and Rx signals of UART1, allowing direct drive to an infrared interface. If the SIR protocol encoder is enabled, the UART Txd2 line is held in the passive state and transitions to the Modem Status Changed, or Rxd2 lines have no effect. The IrDA output pin is LEDDRV and input from the photodiode is PHDIN.
NOTE: Both UARTs operate similar to the industry standard 16C550. When the CTS deasserts on the UART, it does not stop shifting the data, relying on software to take appropriate action in response to the interrupt.
Baud rates supported for both UARTs are dependent on frequency of operation. At 18.432 MHz, the interface supports various baud rates from 115.2 kbps down. The master clock frequency is chosen so that most of the required data rates are obtainable exactly. When operating with a 13-MHz clock source, the baud rates generated have a slight error, less than or equal to 0.75%. The rates obtainable from the 13-MHz clock include 9.6, 19.2, 38, 58, and 115.2 kbps. See Table 5-4 on page 66 for available bit rates in the 13-MHz mode.
3.12
Clocks
There are two clocking options for the CL-PS7111. An on-chip oscillator and PLL provides an 18.432-MHz master bus clock frequency, using an external 3.6864-MHz crystal. Alternatively, an external 13-MHz crystal oscillator can be used. If the 13-MHz clock option is used, connect the clock signal to the EXPCLK pin of the CL-PS7111. This mode is selected by a strapping option on the PE[2] pin. If this input is high at the rising edge of NPOR, the 13-MHz mode is selected. In this mode, EXPCLK is an input. If the external clock mode is not selected, the PLL supplies the clock during the normal mode of operation. The state of PE[2] is latched at the rising edge of the NPOR reset, and the PE[2] pin is then available for GPIO. If the CLKENSL bit (SYSCON[25:18]) is set low, then the CLKEN/RUN pin provides the signal that starts and stops the external clock source supplied to the CL-PS7111 and the DC-DC converter. When this signal is active (high), it enables the 13-MHz clock to the CL-PS7111, and a low level disables the 13-MHz clock. When standby mode is entered in 13-MHz mode, the 13-MHz source is gated out at the pad until it exits standby. If the CLKENSL bit is low, then the CLKEN signal will be output on the CLKEN/RUN pin and can disable an external oscillator. If CLKENSL is set high, then standby mode is immediately exited when a wake-up event or enabled interrupt occurs. If CLKENSL is set high, then the CL-PS7111 sets CLKEN to active after an interrupt or wakeup event occurs. It then waits between 0.125 and 0.25 sec. to allow an external oscillator to stabilize before the clock is enabled through the ARM710 CPU. Only a non-masked interrupt (such as a realtime
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
35
CL-PS7111
Low-Power System-on-a-Chip
clock match), a Port A event (corresponding to a keypress) or a wake-up asserted forces the CL-PS7111 out of standby mode. Figure 3-7 and Figure 3-8 show the CLKEN timing when CLKENSL is low.
CLKEN timing while entering STDBY mode
13 MHz IN
CLKEN
Figure 3-7. CLKEN Timing Entering Standby Mode
CLKEN timing - coming out of STDBY
EXPCLK-IN
(INT) RUN
t41 CLKEN
INTR./ WAKEUP
Figure 3-8. CLKEN Timing Leaving Standby Mode
36
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
3.13
Interrupt Controller
The ARM710a has two interrupt types: IRQ (interrupt request) and FIQ (fast interrupt request). The interrupt controller in the CL-PS7111 controls interrupts from 23 different sources. Nineteen interrupt sources are mapped to the IRQ input and four sources are mapped to the FIQ input. FIQs have a higher priority than IRQs: if two interrupts within the same group (IRQ or FIQ) are active, software must resolve the order in which they are serviced. All interrupts are level-sensitive, that is, they must conform to the following sequence:
1) The device asserts the appropriate interrupt request line. 2) If the appropriate bit is set in the Interrupt Mask register, either FIQ or IRQ is asserted by the interrupt controller. 3) If interrupts are enabled, the processor jumps to the appropriate address. 4) Interrupt dispatch software reads the Interrupt Status register to establish the source(s) of the interrupt, and then calls the appropriate interrupt service routine(s). 5) Software in the interrupt service routine clears the interrupt source by some action specific to the device requesting the interrupt (for example, reading the UART Rx register). 6) The interrupt service routine can then re-enable interrupts. Any other pending interrupts are serviced in a similar way or returned to the interrupt dispatch code, which checks for any more pending interrupts and dispatches them accordingly.
Table 3-12 and Table 3-13 show the names and allocation of interrupts in CL-PS7111. For more information, see Section 5.12 on page 58. Table 3-12. Interrupt Allocation in First Interrupt Register Set
Interrupt
FIQ FIQ FIQ FIQ IRQ IRQ IRQ IRQ IRQ IRQ IRQ IRQ IRQ IRQ IRQ IRQ
Bit in INTMR1 and INTSR1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Name
EXTFIQ BLINT WEINT MCINT CSINT EINT1 EINT2 EINT3 TC1OI TC2OI RTCMI TINT UTXINT1 URXINT1 UMSINT SSEOTI
Comment
External fast interrupt input (NEXTFIQ pin). Battery low interrupt. Watch dog expired interrupt. Media changed interrupt. Codec sound interrupt. External interrupt input 1 (NEINT1 pin). External interrupt input 2 (NEINT2 pin). External interrupt input 3 (EINT3 pin). TC1 under flow interrupt. TC2 under flow interrupt. RTC compare match interrupt. 64-Hz tick interrupt. Internal UART1 transmit FIFO empty interrupt. Internal UART1 receive FIFO full interrupt. Internal UART1 modem status changed interrupt. Synchronous serial interface, end of transfer interrupt.
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
37
CL-PS7111
Low-Power System-on-a-Chip
Table 3-13. Interrupt Allocation in Second Interrupt Register Set
Interrupt
IRQ IRQ IRQ
Bit in INTMR2 and INTSR2
0 12 13
Name
KBDINT UTXINT2 URXINT2
Comment
Key press interrupt Internal UART2 transmit FIFO empty interrupt. Internal UART2 receive FIFO full interrupt.
3.13.1
Interrupt Latencies in Different States
Normal Operating States
The ARM710a macrocell checks for a low level on its FIQ/IRQ inputs at the end of each instruction. First, there is a one- or two-clock cycle synchronization penalty. For the case where the CL-PS7111 is operating at 13 MHz with a 16-bit external memory system and instruction sequence stored in one-wait-state flash memory, the worst-case interrupt latency is 251 clock cycles. This corresponds to the ARM executing an STM instruction in DRAM, and the MMU needs to fetch protection/translation information from page tables in DRAM memory. This also includes a delay for cache linefills for instruction prefetches, a data abort occurring at the end of the LDM, and the LDM being non-quad word aligned. In addition, the worstcase interrupt latency assumes that LCD DMA cycles support a panel size of 320 by 240 at 4 bits per pixel and a 60-Hz refresh rate. This would give a worst-case interrupt latency of about 19.3 s for the ARM710a macrocell operating at 13 MHz. For those interrupt inputs with error correction, this figure is increased by the maximum time required to pass through the deglitcher, which is approximately 60 s (1 cycle of the 16.384-kHz clock derived from the RTC oscillator). So the absolute worst case latency is approximately 80 s. All the serial data transfer peripherals included in CL-PS7111 (except for the master-only SSI) have local buffering to ensure a reasonable interrupt latency response requirement for the O/S of 1 ms or less, assuming that the maximum data rates described in this specification are complied with. If the O/S cannot meet this requirement, then there will be a risk of data overflow/underflow occurring.
Idle State
When leaving idle mode as a result of an interrupt, the CPU clock is restarted after approximately two clock cycles. However, there is still potentially up to 20-s latency as described above, unless the code is written to include at least two single cycle instructions immediately after the write to the IDLE register (in which case the latency drops to a few microseconds). This is important because idle mode will have been left as a result of a pending interrupt, which has to be synchronized by the ARM before it can be serviced.
Standby State
In standby mode, the latency time will depend on whether the system clock is shut down. If running at 18.432 MHz, then the PLL will always be shut down in standby mode in which case there will be a latency time of 0.125 to 0.25 sec. If the system is running at 13 MHz with the CLKENSL bit in SYSCON2 set to 0, then the latency will also be between 0.125 and 0.25 sec. to enable an external oscillator to stabilize. In the case of a 13-MHz system where the clock is not disabled during standby (CLKENSL = 1), then the latency will be less than 1 s if single-cycle instructions are used after the write to the standby location.
38
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Table 3-14 summarizes the external interrupt source latencies. Table 3-14. External Interrupt Source Latencies
Interrupt Pin Input State
Not deglitched. Must be active for 20 s to be detected.
Normal Mode Latency
Worst case latency of 20 s.
Idle Mode Latency
Worst-case latency of 20 s; if only single-cycle instructions, less than 1 s. As above. As above. Worst-case latency of 80 s; if only single cycle instructions, 60 s.
Standby Mode Latency
Including PLL/oscillator settling time, approximately 0.25 sec. or < 1 s if in 13-MHz mode with CLENSL set. As above. As above. As above. Note difference if in 13-MHz mode with CLKENSL set.
NEXTFIQ
NEINT[1-2] EINT[3]
Not deglitched. Not deglitched. Deglitched by 16-kHz clock. Must be active for at least 80 s to be detected.
Worst case latency of 20 s. Worst case latency of 20 s. Worst case latency of 80 s.
MEDCHG
For the case of the keyboard interrupt, the following options are available and are selectable according to bits 1 and 3 of the SYSCON2 register. Refer to the description of SYSCON2 in Section 5.38 on page 70 for details.
q
If the KBWEN bit (SYSCON2[3]) is set low, then a keypress will cause a transition from a power saving state if the keyboard interrupt is non-masked. When KBWEN is high, a keypress will cause the device to wake up irrespective of the status of the Interrupt Mask Register. When the KBD6 bit (SYSCON2[1]) is low, all eight of Port A inputs are OR'ed together to produce the internal wake-up signal and keyboard interrupt request. This is the default reset state. When the KBD6 bit is high, only the lowest six bits of Port A are OR'ed together to produce the internal wake-up signal and keyboard interrupt request. The two most-significant bits of Port A are available as GPIO when this bit is set high.
q
If the keyboard-direct wake-up functionality is enabled (KBWEN bit is high), then the CL-PS7111 is guaranteed to exit from any power saving mode when a key is pressed, and a keyboard interrupt may be generated depending on the state of Interrupt Mask Register 2 (INTMR2[0]). If the KBWEN bit is set low then the CL-PS7111 will only wake up if INTMR2[0] is set high. In the case where KBWEN is low and the INTMR2[0] is low, it will only be possible to wake the device up using the external wake-up pin or another enabled interrupt source. The keyboard interrupt capability allows an O/S to use a polled or interruptdriven keyboard routine, or a combination of both.
3.14
Resets
There are three asynchronous resets to the CL-PS7111: NPOR, NPWRFL, and NURESET. If any of these resets are active, a system reset is internally generated. This clears all internal registers in the CL-PS7111 to `0', except DRFPR (DRAM Refresh Period register) and RTC data and match registers, which are only cleared by an active NPOR signal. Also, FBADDR is reset to give a default frame buffer start address of 0xC000 0000. Any reset also resets the ARM710a and allows it to begin execution at the reset vector when the CL-PS7111 returns to the operating state. Internal to the CL-PS7111, three different signals are used to reset storage elements: NPOR, NSYSRES, and NSTBY. NPOR is an external signal and NSTBY is equivalent to the external RUN signal.
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
39
CL-PS7111
Low-Power System-on-a-Chip
NPOR (Not Power On Reset)
This is the highest-priority reset signal. When active-low, all storage elements in the CL-PS7111 are reset. NPOR active forces NSYSRES and NSTBY active. NPOR is only active when the CL-PS7111 first powers up, not during any other resets. NPOR active clears all flags in the status register, except that CLDFLG (SYSFLG1[15]) is set.
NSYSRES (Not System Reset)
NSYSRES is generated internally if NPOR, NPWRFL, or NURESET are active. NSYSRES is the secondhighest-priority reset signal and asynchronously resets most internal registers in the CL-PS7111. NSYSRES active forces NSTBY and RUN low. NSYSRES resets the CL-PS7111, forcing it into the standby state with no signal from software. The ARM710a is also reset. The memory controller places all DRAMs in Self-Refresh mode, preserving the contents through a system reset. This is the reason the DRAM Refresh Period register is not cleared by a system reset.
NSTBY and RUN
The NSTBY and RUN signals are high when the CL-PS7111 is in the operating or idle states, and low when in standby state. The main system clock is valid when NSTBY is high. The NSTBY signal disables any peripheral block clocked from the master clock source (that is, everything except for the RTC). In general, a system reset clears all registers, and NSTBY disables all peripherals that require a main clock. The following peripherals are disabled by a low level on NSTBY: two UARTs and IrDA SIR encoder, timer counters, telephony codec, and two SSIs. The following are also disabled in standby mode: LCD controller and DC-to-DC converter drive. When operating from an external 13-MHz oscillator, which is disabled in standby mode using the CLKEN signal (that is, with CLKENSL = 0), the oscillator must be stable within 0.125 sec. from the rising edge of CLKEN signal.
3.15
Two DC-to-DC Converters
Two programmable duty ratio clock outputs are provided by the CL-PS7111. When the CL-PS7111 is operating from an 18.432-MHz master clock, these run at a frequency of 96 kHz. When in 13-MHz mode, these run at 101.6 kHz. Use these signals as drives for DC-to-DC converters in the PSU (power-supply unit) subsystem. These clocks are enabled by external input pins that are normally connected to the output from comparators monitoring the DC-to-DC converter output. The duty ratio (and the converter ontime) is programmed from 1-in-16 to 15-in-16. The sense of the DC-to-DC converter drive signal (activehigh or -low) is determined by latching the state of this drive signal during power-on reset (a pull-up resistor on the drive signal results in an active-low drive output and conversely). This allows the DC-to-DC converter to generate either positive or negative voltages.
3.16
Serial Interface
The CL-PS7111 offers the serial interface options as shown in Table 3-15, in addition to the two UARTs. The codec functionality is available only in 18.432-MHz operation. Table 3-15. Serial Interface Options
Type
Codec Interface
Comments
Designed only for use in the 18.432-MHz mode
Transfer Speed
64 kbps
40
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
The codec is enabled when SYSCON2[0] is high. On power-up, this bit is reset low so that the codec is disabled.Table 3-16 shows the pin assignments for the serial interface. Table 3-16. Serial Interface Pin Assignments
Pin Name
PCMCLK PCMSYNC PCMOUT PCMIN
Type
I/O O O I
Codec Functionality
PCMCLK serial shift clock PCMSYNC output frame sync PCMOUT serial output data PCMIN serial input data
3.16.1
Codec Interface
The codec interface allows a direct connection of a telephony-type codec to the CL-PS7111, providing all the necessary clocks and timing pulses and performing serialization of the data stream to/from the external codec. The interface is full-duplex and contains two separate data FIFOs (16- deep by 8-bits wide, one for receive data, another for transmit data). Data is transferred to/from the codec at 64 kbps, either written to or read from the appropriate 16-byte FIFO. The sound interrupt is generated every 8 bytes transferred (FIFO half full/empty), which means the interrupt rate is 1 kHz with a latency of 1 ms.
NOTE: Both CDENRX and CDENTX must be enabled to receive or transmit, and upon completion of transmit the speaker amplifier should be turned off to avoid audible noise. This is required because CL-PS7111 transmits and receives data in FIFO.
3.16.2
ADC Interface -- Master-Mode Only SSI (Synchronous Serial Interface)
The first synchronous serial interface allows peripheral devices (such as ADCs, that have an SPI 1 or Microwire 2 compatible interface) to be directly connected to the CL-PS7111. The clock output frequency is programmable and is only active during data transmissions to save power. There are four output frequencies available, differing slightly between 13-MHz and 18.432-MHz mode (see Table 3-17). The required frequency is selected by programming the corresponding bits (16 and 17) in the SYSCON1 register. The sample clock (SMPCLK) always runs at twice the frequency of the shift clock (ADCCLK). Table 3-17. ADC Interface Operation Frequencies
SYSCON1[16]
0 0 1 1
SYSCON1[17]
0 1 0 1
13.0-MHz Operation ADCCLK Frequency (kHz)
4.2 16.9 67.7 135.4
18.432-MHz Operation ADCCLK Frequency (kHz)
4 16 64 128
1 2
SPI is a registered trademark of MotorolaTM. MicrowireTM is a registered trademark of National Semiconductor.
September 1997
PRELIMINARY DATA BOOK v2.0
FUNCTIONAL DESCRIPTION
41
CL-PS7111
Low-Power System-on-a-Chip
The output channel is fed by an 8-bit shift register, and the input channel is captured by a 16-bit shift register. The clock and synchronization pulses are activated by a write to the Output Shift register. During transfers, the SSIBUSY is set. When the transfer is complete and valid data is in the 16-bit read shift register, the SSEOTI interrupt is asserted and the SSIBUSY bit is cleared. An additional sample clock (SMPCLK) is enabled independently and set at twice the transfer clock frequency. This interface has no local buffering capabilities and is only intended to be used with low-bandwidth interfaces (such as a touchscreen ADC interface).
42
FUNCTIONAL DESCRIPTION
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
4.
MEMORY MAP
The lower two Gbytes of the address space is allocated to ROM and expansion. The 0.5 Gbyte of address space, 0xC000 0000-0xDFFF FFFF, is allocated to DRAM.The remaining Gbyte, minus 8K for the internal registers, is not accessible in the CL-PS7111. Program the MMU of the CL-PS7111 to generate an abort exception to access this area. Internal peripherals addressed through a set of internal memory locations, 0x8000 0000-0x800 1FFF, are the internal registers of the CL-PS7111. Table 4-1 shows the mapping of the 4-Gbyte address range of the ARM710a microprocessor in the CL-PS7111. Note that although 2 Kbytes of SRAM are available, the full address is decoded for the SRAM segment starting at 0x6000 0000. The mapping in Table 4-1 assumes that two CL-PS6700 PC CArd controllers are connected. If this functionality is not required, the NCS[4] and NCS[5] memory is available as general SRAM/flash/ROM/expansion space. The Boot ROM is not fully decoded; the boot code repeats within the 256-Mbyte space from 0x7000 0000-0x8000 0000. THe SRAM is fully decoded so no data is written or read from locations more than 2 Kbytes above the base address. Table 4-1.
Address
F000.0000 E000.0000 D000.0000 C000.0000 8000.2000 8000.0000 7000.0000 6000.0000 5000.0000 4000.0000 3000.0000 2000.0000 1000.0000 0000.0000
CL-PS7111 Memory Map
Contents
Unused Unused DRAM Bank 1 DRAM Bank 0 Unused Internal registers Boot ROM On-chip SRAM PCMCIA-1 (NCS[5]) PCMCIA-0 (NCS[4]) Expansion (NCS[3]) Expansion (NCS[2]) ROM Bank 1 (NCS[1]) ROM Bank 0 (NCS[0])
Size
256 Mbytes 256 Mbytes 256 Mbytes 256 Mbytes ~1 Gbyte 8 Kbytes 128 bytes 2 Kbytes 4*64 Mbytes 4*64 Mbytes 256 Mbytes 256 Mbytes 256 Mbytes 256 Mbytes
September 1997
PRELIMINARY DATA BOOK v2.0
MEMORY MAP
43
CL-PS7111
Low-Power System-on-a-Chip
5.
REGISTER DESCRIPTIONS
Table 5-1 shows all internal registers in the CL-PS7111, assuming the ARM710a is configured for operation with a little-endian memory system. Table 5-2 shows the differences that occur for byte accesses to ports A, B, and D with the ARM710a configured to operate in big-endian mode. All internal registers are inherently little-endian. Therefore, the system endian functionality affects the addresses required for byte accesses to internal registers. This results in a reversal of the byte address required to read or write a particular byte within a register. There is no effect on the register addresses for word accesses. Bits A0 and A1 of the internal address bus are only decoded for ports A, B, and D (to allow reads or writes to individual ports). For all other registers, bits A0 and A1 are not decoded, so that byte reads return the whole register contents to the CL-PS7111 internal bus, from where the appropriate byte (according to the endian functionality) is read by the ARM710a. For example, to read data back as a word (irrespective of endian functionality) or a byte in little-endian mode from the DRFPR (which is only 8-bits wide) requires address 0x8000 0200. However, a byte read to obtain the register contents in big-endian mode must output address 0x8000 0203. To avoid the additional complexity, perform all internal register accesses as word operations, except for ports A to D, which are explicitly designed to operate with byte and word accesses. 8-Kbyte segments of memory in the range 8000.0000-8000.1FFF are reserved for CL-PS7111 internal use. Accesses in this range do not cause any external bus activity unless debug mode is enabled. Writes to bits that are not explicitly defined in the internal area are illegal and have no effect. Reads from bits not explicitly defined in the internal area are legal, but read undefined values. All the internal addresses are only accessed as 32-bit words, and are always on a word boundary (except for the GPIO Port registers, which can be accessed as bytes). Address bits in the range A0-A5 are not decoded (except for GPIO ports A, B, and D). This means each internal register is valid for 64 bytes (for example, the SYSFLG1 register appears at locations 8000.0140-8000.017C). There are some gaps in the register map for backward compatibility with the CL-PS7110 device, but registers located next to a gap are still decoded only for 64 bytes. The GPIO Port registers are byte-wide, but can be accessed as a word. These registers additionally decode A0 and A1. All addresses are hexidecimal. Table 5-1.
Address
8000.0000 8000.0001 8000.0002 8000.0003 8000.0040 8000.0041 8000.0042 8000.0043 8000.0080
Internal I/O Memory Locations in Little-Endian Mode
Name
PADR PBDR - PDDR PADDR PBDDR - PDDDR PEDR 0 0 0 0 0
Default
0 0
R/W
RW RW - RW RW RW - RW RW
Size
8 8 8 8 8 8 8 8 3 Port A Data register Port B Data register Reserved Port D Data register
Comments
Page
47 47 - 47 47 47 - 47 47
Port A Data Direction register Port B Data Direction register Reserved Port D Data Direction register Port E Data register
44
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Table 5-1.
Address
8000.00C0 8000.0100 8000.0140 8000.0180 8000.01C0 8000.0200 8000.0240 8000.0280 8000.02C0 8000.0300 8000.0340 8000.0380 8000.03C0 8000.0400 8000.0440 8000.0480 8000.04C0 8000.0500 8000.0540 8000.0580 8000.05C0 8000.0600 8000.0640 8000.0680 8000.06C0 8000.0700 8000.0740 8000.0780 8000.07C0 8000.0800 8000.0840
Internal I/O Memory Locations in Little-Endian Mode (cont.)
Name
PEDDR SYSCON1 SYSFLG1 MEMCFG1 MEMCFG2 DRFPR INTSR1 INTMR1 LCDCON TC1D TC2D RTCDR RTCMR PMPCON CODR UARTDR1 UBRLCR1 SYNCIO PALLSW PALMSW STFCLR BLEOI MCEOI TEOI TC1EOI TC2EOI RTCEOI UMSEOI COEOI HALT STDBY
Default
0 0 0 0 0 0 0 0 0 0 0 - - 0 0 0 0 0 0 0 - - - - - - - - - - -
R/W
RW RW R RW RW RW R RW RW RW RW RW RW RW RW RW RW RW RW RW W W W W W W W W W W W
Size
3 21 32 32 32 8 32 32 32 16 16 32 32 12 16 8/11 32 16 32 32 - - - - - - - - - - -
Comments
Port E Data Direction register System Control register 1 System Status Flags register 1 Expansion and ROM Memory Configuration register 1 Expansion and ROM Memory Configuration register 2 DRAM Refresh Period register Interrupt Status register 1 Interrupt Mask register 1 LCD Control register Read/write data to Timer Counter 1 Data register Read/write data to Timer Counter 2 Data register Realtime Clock Data register Realtime Clock Match register DC-to-DC Converter Pump Control register Codec Interface Data register UART FIFO Data register 1 UART Bit Rate and Line Control register Synchronous Serial I/O Data register only for Master SSI Least-significant 32-bit word of LCD Palette register Most-significant 32-bit word of LCD Palette register Write to clear all start up reason flags Write to clear Battery Low interrupt Write to clear Media Changed interrupt Write to clear Tick and Watchdog interrupt Write to clear TC1 interrupt Write to clear TC2 interrupt Write to clear RTC Match interrupt Write to clear UART Modem Status Changed interrupt Write to clear Codec Sound interrupt Write to enter idle state Write to enter standby state
Page
47 48 50 53 54 57 58 60 60 62 62 62 62 63 64 64 65 67 68 68 69 69 69 69 69 69 69 69 69 69 69
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
45
CL-PS7111
Low-Power System-on-a-Chip
Table 5-1.
Address
8000.0880- 8000.0FFF 8000.1000 8000.1100 8000.1140 8000.1240 8000.1280 8000.1480 8000.14C0 8000.1700 8000.1840- BFFF.FFFF
Internal I/O Memory Locations in Little-Endian Mode (cont.)
Name
Reserved FRBADDR SYSCON2 SYSFLG2 INTSR2 INTMR2 UARTDR2 UBRLCR2 KBDEOI Reserved
Default
- C 0 0 0 0 0 0 - -
R/W
- RW RW R R RW RW RW - -
Size
- 4 16 16 24 16 8 32 - -
Comments
Write has no effect; read is undefined LCD Frame Buffer Start Address register System Control register 2 System Status Flag register 2 Interrupt Status register 2 Interrupt Mask register 2 UART2 Data register UART2 Control register Write to clear keyboard interrupt This area contains test registers used during manufacturing tests. Never attempt to write to these addresses during normal operation as this can cause unexpected behavior. Reads are undefined.
Page
- 70 70 71 72 72 64 65 72 -
Table 5-2.
Address
8000.0003 8000.0002 8000.0001 8000.0000 8000.0043 8000.0042 8000.0041 8000.0040 8000.0200 8000.0440 8000.0480 8000.1480
Port Byte Addresses in Big-Endian Mode
Name
PADR PBDR - PDDR PADDR PBDDR - PDDDR DRFPR CODR UARTDR1 UARTDR2 0 0 0 0 0 0 0 0
Default
0 0
R/W
RW RW - RW RW RW - RW RW RW RW RW
Size
8 8 8 8 8 8 8 8 8 8 8 8 Port A Data register Port B Data register Reserved Port D Data register
Comments
Port A Data Direction register Port B Data Direction register Reserved Port D Data Direction register DRAM Refresh Period register Codec Data I/O register UART1 FIFO Data register UART2 FIFO Data register
All internal registers in the CL-PS7111 are reset (cleared to `0') by a system reset (NPOR, NRESET, or NPWRFL), except for DRFPR, RTCDR, and RTCMR that are only reset when NPOR becomes active. This ensures that DRAM contents and system time are preserved through a user-reset or power-fail condition. 46 September 1997
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
CL-PS7111
Low-Power System-on-a-Chip
5.1
Port A Data Register -- PADR
Values written to this 8-bit read/write register are output on the Port A pins if the corresponding data direction bits are set high (port output). Values read from this register reflect the external state of Port A, not necessarily the value written to it. All bits are cleared by a system reset.
5.2
Port B Data Register -- PBDR
Values written to this 8-bit read/write register are output on the Port B pins if the corresponding data direction bits are set high (port output). Values read from this register reflect the external state of Port B, not necessarily the value written to it. All bits are cleared by a system reset.
5.3
Port D Data Register -- PDDR
Values written to this 8-bit read/write register are output on the Port D pins if the corresponding data direction bits are set low (port output). Values read from this register reflect the external state of Port D, not necessarily the value written to it. All bits are cleared by a system reset.
NOTE: There is no Port C on the CL-PS7111.
5.4
Port A Data Direction Register -- PADDR
Bits set in this 8-bit read/write register select the corresponding pin in Port A to become an output; clearing any bit sets the pin to input. All bits are cleared by a system reset.
5.5
Port B Data Direction Register -- PBDDR
Bits set in this 8-bit read/write register select the corresponding pin in Port B to become an output; clearing a bit sets the pin to input. All bits are cleared by a system reset.
5.6
Port D Data Direction Register -- PDDDR
Bits cleared in this 8-bit read/write register select the corresponding pin in Port D to become an output; setting a bit sets the pin to input. All bits are cleared by a system reset so that Port D is output by default.
5.7
Port E Data Register -- PEDR
Values written to this 3-bit read/write register are output on Port E pins if the corresponding data direction bits are set high (port output). Values read from this register reflect the external state of Port E, not necessarily the value written to it. All bits are cleared by a system reset.
5.8
Port E Data Direction Register -- PEDDR
Bits set in this 3-bit read/write register select the corresponding pin in Port E to become an output; clearing a bit sets the pin to input. All bits are cleared by a system reset so that the default for Port E is input.
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
47
CL-PS7111
Low-Power System-on-a-Chip
5.8.1
23
1
System Control Register 1 -- SYSCON1
22
Reserved
21
20
IRTXM
19
WAKEDIS
18
EXCKEN
17
ADCKSEL
16
15
SIREN
14
CDENRX
13
CDENTX
12
LCDEN
11
DBGEN
10
BZMOD
9
BZTOG
8
UART1EN
7
TC2S
6
TC2M
5
TC1S
4
TC1M
3
2
1
0
Keyboard Scan
The System Control register is a 21-bit read/write register that controls the general configuration of the CL-PS7111 as well as modes for peripheral devices. All bits in this register are cleared by a system reset.
Bit
23
Description
This bit must always be set to `1'.
22:21 Reserved 20 IRTXM: IrDA Tx mode bit. This bit controls the IrDA encoding strategy. Clearing this bit means each `0' bit transmitted is represented as a pulse of width 3/16th of the bit rate period. Setting this bit means each `0' bit is represented as a pulse of width 3/16th of the period of 115,200 bit rate clock, that is, 1.6 s, regardless of the selected bit rate. Setting this bit reduces power consumption, but probably reduces transmission distances. WAKEDIS: Setting this bit disables wake-up from standby mode through the WAKEUP + KBD inputs. EXCKEN: External expansion clock enable. If this bit is set, the EXPCLK is enabled continuously; it is the same speed and phase as the CPU clock, and free-run all the time the main oscillator is running. Do not leave this bit set for power consumption reasons. If the system enters the standby state, the EXPCLK is undefined. If this bit is clear, EXPCLK is active during memory cycles only to the expansion slots that have external wait-state generation enabled.
19 18
17:16 ADCKSEL: Microwire(R)/SPI(R) peripheral clock speed select. This 2-bit field selects the frequency of the ADC sample clock, which is twice the frequency of the synchronous serial ADC interface clock. The following table shows the available frequencies, assuming operation at 18.432-MHz mode. The frequencies obtained at 13-MHz mode can be found on Table 3-17 on page 41.
Bit 17
0 0 1 1
16
0 1 0 1
ADC Sample Frequency (kHz) SMPCLK
8 32 128 256
ADC interface frequency (kHz) -- ADCCLK
4 16 64 128
15
SIREN: HP SIR protocol encoding enable. If the UART is not enabled, this bit has no effect.
48
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Bit
14
Description (cont.)
CDENRX: Codec interface enable Rx bit. Setting this bit enables the codec interface for data reception from an external codec device. NOTE: Both CDENRX and CDENTX must be enabled/disabled in tandem.
13
CDENTX: Codec interface enable Tx bit. Setting this bit enables the codec interface for data transmission to an external codec device. LCDEN: LCD enable bit. Setting this bit enables the LCD controller. DBGEN: Setting this bit enables debug mode. In this mode all internal accesses are output as if they were reads or writes to expansion memory addressed by NCS5. NCS5 remains active in its standard address range. In addition, the internal interrupt request and fast interrupt request signals to the ARM710a microprocessor are output on Port E bits 1 and 2 in Debug mode. NOTE: These bits must be programmed as outputs before this functionality can be observed. The clock to the ARM CPU is output on Port E bit 0 in debug mode to enable individual accesses to be distinguished: NCS5 = NCS5 or internal I/O strobe PE0 = CLK PE1 = NIRQ PE2 = NFIQ
12 11
10
BZMOD: This bit sets the Buzzer Drive mode. 0 = the buzzer drive is connected directly to the BZTOG bit. 1 = the buzzer drive is connected to the TC1 under-flow bit. BZTOG: Bit to directly drive buzzer. UART1EN: Internal UART enable bit. Setting this bit enables the internal UART. TC2S:Timer Counter 2 clock source. Setting this bit sets the TC2 clock source to 512 kHz, clearing it sets the clock source to 2 kHz (assuming an 18.432-MHz clock). TC2M: Timer Counter 2 (TC2) mode. Setting this bit sets TC2 to Prescale mode, clearing it sets Free-running mode. TC1S: Timer Counter 1 clock source. Setting this bit sets the TC1 clock source to 512 kHz, clearing it sets the clock source to 2 kHz (assuming an 18.432-MHz clock). TC1M: Timer Counter 1 (TC1) mode. Setting this bit sets TC1 to Prescale mode, clearing it sets Free-running mode.
9 8 7
6 5
4
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
49
CL-PS7111
Low-Power System-on-a-Chip
Bit
3:0
Description (cont.)
Keyboard Scan: This 4-bit field that defines the state of the keyboard column drives.
Keyboard Scan
0 1 2-7 8 9 10 11 12 13 14 15 All driven high All driven low
Column
All high impedance (tristate) Column 0 only driven high, all others high impedance Column 1 only driven high, all others high impedance Column 2 only driven high, all others high impedance Column 3 only driven high, all others high impedance Column 4 only driven high, all others high impedance Column 5 only driven high, all others high impedance Column 6 only driven high, all others high impedance Column 7 only driven high, all others high impedance
5.9
31
System Status Flags Register 1 -- SYSFLG1
30
VERID
29
ID
28
BOOTBIT1
27
BOOTBIT0
26
SSIBUSY
25
CTXFF
24
CRXFE
23
UTXFF1
22
URXFE1
21
20
19
RTCDIV
18
17
16
15
CLDFLG
14
PFFLG
13
RSTFLG
12
NBFLG
11
UBUSY1
10
DCD
9
DSR
8
CTS
7
6
DID
5
4
3
WUON
2
WUDR
1
DCDET
0
MCDR
The System Status Flags register 1 is a 32-bit read-only register that indicates various system information.
Bit
31:30 29
Description
VERID: Version ID bits. These two bits determine the version identification for the CL-PS7111. Reads `0' for the first version. ID: Always reads `1' for the CL-PS7111. Always reads `0' for the CL-PS7110.
50
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Bit
Description (cont.)
28:27 BOOTBIT0-1: These bits indicate the default (power-on reset) bus width of the ROM interface. See the Memory Configuration registers on page 53 for more details on the ROM interface bus width. The state of these bits reflects the state of Port E bits 0-1 during power-on reset, as shown in the following table:
PE1 (BOOTBIT1)
0 0 1 1
PE0 (BOOTBIT0)
0 1 0 1
Boot Option
32 bit 8 bit 16 bit Reserved
26
SSIBUSY: Synchronous serial interface busy. This bit is set while data is shofted in or out of the seynchronous serial interface. When this bit is clear, data is valid for reads. CTXFF: Codec Tx FIFO full bit. This is set if the 16-byte codec Tx FIFO is full. CRXFE: Codec Rx FIFO empty bit. This is set if the 16-byte codec Rx FIFO is empty. UTXFF1: UART1 transmit FIFO full. The meaning of this bit depends on the state of the UFIFOEN bit in the UART1 Bit Rate and Line Control register. If the FIFO is disabled, this bit is set when the Tx Holding register is full. If the FIFO is enabled, the UTXFF1 bit is set when the Tx FIFO is full. URXFE1: UART1 receiver FIFO empty. The meaning of this bit depends on the state of the UFIFOEN bit in the UART1 Bit Rate and Line Control register. If the FIFO is disabled, this bit is set when the Rx Holding register is empty. If the FIFO is enabled the URXFE bit is set when the Rx FIFO is empty.
25 24 23
22
21:16 RTCDIV: This 6-bit field reflects the number of 64-Hz ticks that have passed since the last increment of the RTC. It is the output of the divide-by-64 chain that divides the 64-Hz tick clock down to 1 Hz for the RTC. The MSB is the 32-Hz output; the LSB is the 1-Hz output. 15 CLDFLG: Cold start flag. This bit is set if the CL-PS7111 has been reset with a power on reset; it is cleared by writing to the STFCLR location. PFFLG: Power fail flag. This bit is set if the system has been reset by the power fail input pin, it is cleared by writing to the STFCLR location. RSTFLG: Reset flag. This bit is set if the RESET button is pressed, forcing the NURESET input low. It is cleared by writing to the STFCLR location. NBFLG: New battery flag. This bit is set if a low-to-high transition has occurred on the NBATCHG input; it is cleared by writing to the STFCLR location. UBUSY1: UART1 transmitter busy. This bit is set while the UART1 is busy transmitting data; it is guaranteed to remain set until the complete byte has been sent, including all stop bits. DCD: This bit reflects the current status of the data carrier detect (DCD) modem-control input to the UART1. DSR: This bit reflects the current status of the data set ready (DSR) modem-control input to the UART1. CTS: This bit reflects the current status of the clear to send (CTS) modem-control input to the UART1.
14
13
12
11
10 9 8
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
51
CL-PS7111
Low-Power System-on-a-Chip
Bit
7:4
Description (cont.)
DID: Display ID nibble. This 4-bit nibble reflects the latched state of the four LCD data lines. The state of the four LCD data lines is latched by the LCDEN bit and always reflect the last state of these lines before the LCD controller was enabled. These bits identify the LCD display panel. WUON: This bit is set if the system is brought out of standby by a rising edge on the WAKEUP signal. This bit is cleared by a system reset or by writing to the HALT or STDBY locations. WUDR: Wake-up direct read. This bit reflects the non-latched state of the WAKEUP signal. DCDET: This bit is set if the main adapter is powering the system (the inverted state of the NDCDET input pin). MCDR: Media changed direct read. This bit reflects the non-latched status of the media changed input.
3
2 1 0
52
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
5.10
Memory Configuration Register 1 -- MEMCFG1
31:24
NCS3 configuration
23:16
NCS2 configuration
15:8
NCS1 configuration
7:0
NCS0 configuration
Expansion and ROM space is selected by one of eight chip selects. One chip select (CS6) is used internally for the on-chip SRAM, and the configuration is hardwired for 32-bit wide, minimum-wait state operation. CS7 is used for the on-chip Boot ROM, and the configuration field is hardwired for 8-bit wide, minimum-wait state operation. Data written to the configuration fields for either CS6 or CS7 are ignored. Two of the chip selects (NCS4 and NCS5) can be used to access two CL-PS6700 PCMCIA controller devices, and when either of these interfaces is enabled, the configuration field for the appropriate chip select in the MEMCFG2 register is ignored. When the PCMCIA1 or 2 control bit in the SYSCON2 register is disabled, then NCS4 and NCS5 are active as normal and can be programmed using the relevant fields of MEMCFG2, as for the other four chip selects. All of the six external chip selects are active for 256 Mbytes, and the timing and bus transfer width can be programmed individually. This is accomplished by programming the width fields contained in two 32-bit registers, MEMCFG1 and MEMCFG2. All bits in these registers are cleared by a system reset (except for the CS6 and CS7). The Memory Configuration register 1 is a 32-bit read/write register that sets the configuration of the four expansion and ROM selects NCS0-3. Each select is configured with a 1-byte field, starting with expansion select 0.
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
53
CL-PS7111
Low-Power System-on-a-Chip
5.10.1
Memory Configuration Register 2 -- MEMCFG2
31:24 23:16
(Local SRAM, CS6)
15:8
NCS5 configuration
7:0
NCS4 configuration
(Boot ROM, CS7)
The Memory Configuration Register 2 is a 32-bit read/write register that sets the configuration of the two expansion and ROM selects NCS4-5. Each select is configured with a 1-byte field, starting with expansion select 4. Each of the six non-reserved byte fields for chip-select configuration in the Memory Configuration registers are identical and define the number of wait states, the bus width, enable EXPCLK output during accesses and enable sequential mode access. This arrangement applies to NCS0-3, and to NCS4-5 when the PCMCIA enable bits in the SYSCON2 register are not set. The state of these bits is ignored for the Boot ROM and local SRAM fields in the MEMCFG2 register. This byte field is defined as follows:
7
CLKEN
6
SQAEN
5:4
Sequential access wait state
3:2
Random access wait state
1:0
Bus width
NOTE: IF PCMCIA is enabled, the CS4/CS5 settings in this register are ignored.
The memory area decoded by CS6 is reserved for the 2 Kbytes of on-chip SRAM and does not require a configuration field in MEMCFG2. It is automatically set up for 32 bits and no wait state. For the Boot ROM, it is automatically set up for 8 bits and no wait state. Chip selects NCS4 and NCS5 are used to select two CL-PS6700 PCMCIA controller devices. These have a multiplexed 16-bit wide address/data interface, and the configuration bytes in the MEMCFG2 register have no meaning when these interfaces are enabled.
Bit
7
Description
CLKENB: Expansion clock enable. Setting this bit enables the EXPCLK to be active during accesses to the selected expansion device. This provides a timing reference for devices that need to extend bus cycles using the EXPRDY input. Back-to-back (but not necessarily Page mode) accesses result in a continuous clock. This bit only affects EXPCLK when the PLL is being used, that is, in 18.432-MHz mode. When operating in 13-MHz mode, the EXPCLK pin is an input, so it cannot be affected by this register bit. To save power internally, EXPCLK should always be set to `0' when operating in 13-MHz mode. SQAEN: Sequential access enable. Setting this bit enables sequential accesses that are on a quad-word boundary to take advantage of faster access times from devices that support Page mode. The sequential access is faulted after four words, (to allow video refresh cycles to occur), even if the access is part of a longer sequential access. In addition, when this bit is not set, all non-sequential accesses have a single idle cycle inserted between them so that the chip select is deasserted between each access for easier debug.
6
54
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Bit
5:4
Description (cont.)
Sequential Access Wait State:
Bit No. of Wait States 5
0 0 1 1 3:2
4
0 1 0 1 3 2 1 0
Random Access Wait State:
Bit No. of Wait States 3
0 0 1 1
2
0 1 0 1 4 3 2 1
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
55
CL-PS7111
Low-Power System-on-a-Chip
Bit
1:0
Description (cont.)
Bus Width: The effect of this field is dependent on the two BOOTBIT bits, which can be read in the SYSFLG register. All bits in the Memory Configuration register are cleared by a system reset, and the state of the BOOTBIT bits is determined by Port E bits 0 and 1 on the CL-PS7111 during power-on reset. The state of PE1 and PE0 determine whether the CL-PS7111 is going to boot from either 32-, 16-, or 8-bit-wide ROMs. See Chapter 6, "ELECTRICAL SPECIFICATIONS" for more details on bus timing.
Bit BOOTBIT1 1
0 0 1 1 0 0 1 1 0 0 1 1
BOOTBIT0
0 0 0 0 1 1 1 1 0 0 0 0
0
0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 1 1 1
Expansion Transfer Mode
32-bit-wide bus access 16-bit-wide bus access 8-bit-wide bus access Reserved 8-bit-wide bus access Reserved 32-bit-wide bus access 16-bit-wide bus access 16-bit-wide bus access 32-bit-wide bus access Reserved 8-bit-wide bus access
Port E Bits 1 and 0 During NPOR Reset
Low, Low Low, Low Low, Low Low, Low Low, High Low, High Low, High Low, High High, Low High, Low High, Low High, Low
56
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
5.11
7
DRAM Refresh Period Register -- DRFPR
6 5 4 3
RFDIV
2
1
0
RFSHEN
The DRAM Refresh Period register is an 8-bit read/write register that enables refresh and selects the refresh period used by the DRAM controller for its periodic CAS-before-RAS refresh. The value in the DRAM refresh period register is only cleared by a power on reset, that is, the register state is maintained during a power fail or user reset.
Bit
7
Description
RFSHEN: DRAM refresh enable. Setting this bit enables periodic refresh cycles to be generated by the CL-PS7111 at a rate set by the RFDIV field. Setting this bit also enables Self-refresh mode when the CL-PS7111 is in the standby state. RFDIV: This 7-bit field sets the DRAM refresh rate. The refresh period is derived from a 128-kHz clock as shown in Equation 5-1. Frequency (kHz) = 128/(RFDIV + 1), that is, RFDIV = (128/Refresh frequency (kHz)) - 1 Equation 5-1
6:0
This equation is valid for both 13-MHz and 18-MHz modes. The equation for frequency gives the refresh rate for the DRAM. The maximum refresh frequency is 64 kHz, the minimum is 1 kHz. The RFDIV field should not be programmed with `0' as this results in no refresh cycles being initiated. These values are valid for both 13-MHz and 18-MHz modes of operation.
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
57
CL-PS7111
Low-Power System-on-a-Chip
5.12
15
Interrupt Status Register 1 -- INTSR1
14
UMSINT
13
URXINT1
12
UTXINT
11
TINT
10
RTCMI
9
TC2OI
8
TC1OI
SSEOTI
7
EINT3
6
EINT2
5
EINT1
4
CSINT
3
MCINT
2
WEINT
1
BLINT
0
EXTFIQ
The Interrupt Status register is a 32-bit read-only register. This register reflects the current state of the first 16 interrupt sources within the CL-PS7111. Each bit is set if the appropriate interrupt is active. The following describes the interrupt assignments.
Bit
15
Description
SSEOTI: Synchronous serial interface end-of-transfer interrupt. This interrupt is active after a complete data transfer to and from the external ADC has completed. It is cleared by reading the ADC data from the SYNCIO register. UMSINT: Internal UART1 modem status changed interrupt. This interrupt is active if either of the two modem status lines (CTS or DSR) change state. It is cleared by writing to the UMSEOI location. URXINT: Internal UART1 receive FIFO half-full interrupt. The function of this interrupt source depends on whether the UART1 FIFO is enabled. If the FIFO is disabled this interrupt is active when there is valid Rx data in the UART1 Rx Data Holding register, and is cleared by reading this data. If the FIFO is enabled this interrupt is active when the UART1 Rx FIFO is half or more full or if the FIFO is non empty and no more characters are received for a 3-character time-out period. It is cleared by reading all the data from the Rx FIFO. UTXINT1: Internal UART1 transmit FIFO half-empty interrupt. The function of this interrupt source depends on whether the UART1 FIFO is enabled. If the FIFO is disabled (FIFOEN bit is clear in the UART1 Bit Rate and Line Control register), this interrupt is active when there is no data in the UART1 Tx Data Holding register, and cleared by writing to the UART1 Data register. If the FIFO is enabled this interrupt is active when the UART1 Tx FIFO is half or more empty, and is cleared by filling the FIFO to at least half full. TINT: 64-Hz tick interrupt. This interrupt becomes active on every rising edge of the internal 64-Hz clock signal. This 64-Hz clock is derived from the 15-stage ripple counter that divides the 32.768-kHz oscillator input down to 1 Hz for the realtime clock. This interrupt is cleared by writing to the TEOI location. RTCMI: RTC compare match interrupt. This interrupt becomes active on the next rising edge of the 1-Hz realtime clock (one second later) after the 32-bit time written to the realtime clock match register exactly matches the current time in the RTC. It is cleared by writing to the RTCEOI location. TC2OI: TC2 under-flow interrupt. This interrupt becomes active on the next falling edge of the timer counter 2 clock after the timer counter has under-flowed (reached `0'). It is cleared by writing to the TC2EOI location. TC1OI: TC1 under-flow interrupt. This interrupt becomes active on the next falling edge of the timer counter 1 clock after the timer counter has under-flowed (reached `0'). It is cleared by writing to the TC1EOI location. EINT3: External interrupt input 3. This interrupt is active if the EINT3 input is active (high) it is cleared by returning EINT3 to the passive (low) state. EINT2: External interrupt input 2. This interrupt is active if the NEINT2 input is active (low). It is cleared by returning NEINT2 to the passive (high) state. EINT1: External interrupt input 1. This interrupt is active if the NEINT1 input is active (low). It is cleared by returning NEINT1 to the passive (high) state.
14
13
12
11
10
9
8
7
6
5
58
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Bit
4
Description (cont.)
CSINT: Codec sound interrupt. This interrupt is active if the codec interface is enabled and the codec data FIFO has reached half full or empty (depending on the interface direction). It is cleared by writing to the COEOI location. MCINT: Media changed interrupt. This interrupt is active after a rising edge on the NMEDCHG input pin has been detected, This input is deglitched with a 16-kHz clock and only generates an interrupt if it is active for longer than 62.5 ms. It is mapped to the FIQ input on the ARM710a microprocessor and is cleared by writing to the MCEOI location. WEINT: Watchdog expired interrupt. This interrupt is active on a rising edge of the periodic 64-Hz tick interrupt clock if the tick interrupt is still active, that is, if a tick interrupt has not been serviced for a complete tick period. It is cleared by writing to the TEOI location. NOTE: Watchdog timer is turned off during STANDBY modes. Watchdog cannot be accessed or cleared by software.
3
2
1
BLINT: Battery low interrupt. This interrupt is active if no external supply is present (NEXTPWR is high), and the battery-OK input pin BATOK is forced low. This interrupt is deglitched with a 16-kHz clock so it only generates an interrupt if it is active for longer than 62.5 ms. It is mapped to the FIQ input on the ARM7 processor and is cleared by writing to the BLEOI location. EXTFIQ: External fast interrupt. This interrupt is active if the NEXTFIQ input pin is forced low and is mapped to the FIQ input on the ARM7 processor.
0
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
59
CL-PS7111
Low-Power System-on-a-Chip
5.13
15
Interrupt Mask Register 1 -- INTMR1
14
UMSINT
13
URXINT
12
UTXINT
11
TINT
10
RTCMI
9
TC2OI
8
TC1OI
SSEOTI
7
EINT3
6
EINT2
5
EINT1
4
CSINT
3
MCINT
2
WEINT
1
BLINT
0
EXTFIQ
The Interrupt Mask register 1 is a 32-bit read/write register used to selectively enable the 16 interrupt sources within the CL-PS7111. The four shaded cells in the previous table are interrupts that generate a fast interrupt request to the ARM7 processor (FIQ), causing a jump to the processor virtual address 0000.0001C. All other interrupts generate a standard interrupt request; this causes a jump to processor virtual address 0000.00018. See Table 3-12 on page 37 for the interrupt allocation. Setting the appropriate bit in this register enables the corresponding interrupt. All bits are cleared by a system reset.
5.14
31
GSMD
LCD Control Register -- LCDCON
30
GSEN
29:25
AC prescale
24:19
Pixel prescale
18:13
Line length
12:0
Video buffer size
The LCD Control register is a 32-bit read/write that controls the size of the LCD screen and the operating mode of the LCD controller operates in. Refer to Section 3.10 on page 33 for more information on video buffer mapping and the LCD controller.
NOTE: The LCDCON register should only be reprogrammed when the LCD controller is disabled. Bit
31 30
Description
GSMD: Grayscale mode bit. Clearing this bit sets the controller to 2-bits per pixel (4 grayscales). Setting sets the controller to 4-bits per pixel (15 grayscales). GSEN: Grayscale enable bit. Setting this bit enables grayscale output to the LCD. When this bit is cleared, each bit in the video map directly corresponds to a pixel in the display.
29:25 AC Prescale: The AC prescale field is a 5-bit number that sets LCD AC bias frequency. This frequency is the required AC bias frequency for a given manufacturer's LCD plate. This frequency is derived from the frequency of the line clock (CL1). The `M' signal toggles after n+1 counts of the line clock (CL1) where n is the number programmed into the AC prescale field. This number must be chosen to match the manufacturer's recommendation (normally 13), but must not be exactly divisible by the number of lines in the display.
60
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Bit
Description (cont.)
24:19 Pixel Prescale: The pixel prescale field is a 6-bit field that sets the pixel rate prescale. The pixel rate is derived from a 36.864-MHz clock and is calculated with Equation 5-2. Pixel rate (MHz) = 36.864 / (pixel prescale + 1) Equation 5-2
The pixel rate should be chosen to give a complete screen refresh frequency of approximately 70 Hz to avoid flicker. Frequencies above 70 Hz should be avoided as they consume additional power. The pixel prescale value can be expressed in terms of the LCD size by using Equation 5-3. Pixel prescale = (526628 / Total pixels in display) - 1 Equation 5-3
The value should be rounded down to the nearest whole number. `0' is illegal and results in no pixel clock. For example: A 640 x 240 LCD, pixel prescale = 526628 / (640 x 240) - 1 = 2.428 (2) Equation 5-4
Equation 5-4 gives an actual pixel rate of 36.864E6 / 2 + 1 = 12.288 MHz, which gives an actual refresh frequency of 12.288E6 / (640 x 240) = 80 Hz. NOTE: As the CL2 low pulse time is doubled after every CL1 high pulse (see Figure 6-8 on page 86), this refresh frequency is only an approximation; the accurate formula is shown in Equation 5-5. 12.288E6 / ((640 x 240) + 120) = 79.937 Hz. Equation 5-5
18:13 Line Length: The line length field is a 6-bit field that sets the number of pixels in one complete line. This field is calculated with Equation 5-6. Line length = (No. pixels in line / 16) - 1 For example, for 640 x 240 LCD Line length = (640 / 16) - 1 = 39 or 0x27 h. NOTE: The minimum value that can be programmed into this register is `1' (that is, `0' is not a legal value). 12:0 Video Buffer Size: The video buffer size field is a 13-bit field that sets the total number of bits x 128 (quad words) in the video display buffer. This is calculated with Equation 5-7. Video buffer size = (Total bits in video buffer / 128) - 1 Equation 5-7 Equation 5-6
For example, for a 640 x 240 LCD and 4 bits per pixel the size of the video buffer = 640 x 240 x 4 = 614400 bits Video buffer size field = (614400 / 128) - 1 = 4799 or 0x12BF h. Equation 5-8
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
61
CL-PS7111
Low-Power System-on-a-Chip
5.15
Timer Counter 1 Data Register -- TC1D
The Timer Counter 1 Data register is a 16-bit read/write register that sets and reads data to TC1. Any value written is decremented on the next rising edge of the clock.
5.16
Timer Counter 2 Data Register -- TC2D
The Timer Counter 2 Data register is a 16-bit read/write register that sets and reads data to TC2. Any value written is decremented on the next rising edge of the clock.
5.17
Realtime Clock Data Register -- RTCDR
The Realtime Clock Data register is a 32-bit read/write register that sets and reads the binary time in the RTC. Any value written is incremented on the next rising edge of the 1-Hz clock. All bits in the Realtime Clock Data register are only cleared by an active NPOR. This register is reset only by NPOR.
5.18
Realtime Clock Match Register -- RTCMR
The Realtime Clock Match register is a 32-bit read/write register that sets and reads the binary match time to RTC. Any value written is compared to the current binary time in the RTC, if they match it asserts the RTCMI interrupt source. This register is reset only by NPOR.
62
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
5.19
Pump Control Register -- PMPCON
11:8
Drive 1 pump ratio
7:4
Drive 0 from mains ratio
3:0
Drive 0 from battery ratio
The DC-to-DC Converter Pump Control register is a 12-bit read/write-only register that sets and controls the variable mark space ratio drives for two DC-to-DC converters. All bits in this register are cleared by a system reset.
Bit
Description
Drive 0 from Battery: This 4-bit field controls the on time for the drive 0 DC-to-DC pump while the system is powered from batteries. Setting these bits to `0' disables this pump, setting these bits to `1' allows the pump to be driven in a 1:16 duty ratio, 2 in a 2:16 duty ratio, etc., up to a 15:16 duty ratio. An 8:16 duty ratio results in a square wave of 96 kHz when operating with an 18.432-MHz master clock, or 101.6 kHz when operating from the 13-MHz source. The NEXTPWR input is used to switch between the two on times for `drive0'. Drive 0 from Mains: This 4-bit field controls the on time for the drive 0 DC-to-DC pump while the system is powered from mains. Setting these bits to `0' disables this pump; setting these bits to `1' allows the pump to be driven in a 1:16 duty ratio, 2 in a 2:16 duty ratio, etc., up to a 15:16 duty ratio. An 8:16 duty ratio results in a square wave of 96 kHz when operating with an 18.432-MHz master clock, or 101.6 kHz when operating from the 13-MHz source. The NEXTPWR input switches between the two on times for `drive 0'. Drive 1 Pump Ratio: This 4-bit field controls the on time for the drive 1 DC-to-DC pump. Setting these bits to `0' disables this pump, setting these bits to `1' allows the pump to be driven in a 1:16 duty ratio, 2 in a 2:16 duty ratio, etc., up to a 15:16 duty ratio. An 8:16 duty ratio results in a square wave of 96 kHz when operating with an 18.432-MHz master clock, or 101.6 kHz when operating from the 13-MHz source. The state of the output drive pins is latched during power-on reset, this latched value is used to determine the polarity of the drive output. The sense of the DC-to-DC converter control lines is summarized in the following table.
3:0
7:4
11:8
Initial State of Drive `n' during POR
Low High
Sense of Drive `n'
Active high Active low
Polarity of Bias Voltage
+VE -VE
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
63
CL-PS7111
Low-Power System-on-a-Chip
5.20
Codec Interface Data Register -- CODR
The CODR register is a 16-bit read/write register, which is used with the codec interface when this is selected by the appropriate setting of SYSCON2[0] (SERSEL). Data written to or read from this register is pushed or popped onto the appropriate 16-byte FIFO buffer. Data from this buffer is then serialized and sent to or received from the codec sound device. When the CODEC is enabled, the codec interrupt CSINT is generated repetitively at 1/8th of the byte transfer rate and the state of the FIFOs can be read in the System Flags register. The net data transfer rate to/from the codec device is 8 Kbytes per second giving an interrupt rate of 1 kHz.
5.21
10
UART Data Registers -- UARTDR1-2
9
PARERR
8
FRMERR
7:0
Rx data
OVERR
The UARTDR registers are an 11-bit read and 8-bit write register for all data transfers to or from the internal UARTs 1 and 2. Data written to this register is pushed onto the 16-byte data Tx holding FIFO if the FIFO is enabled; if not, it is stored in a 1-byte holding register. This write initiates transmission from the UART. The UART Data Read register comprises the 8-bit data byte received from the UART together with three bits of error status. Data read from this register is popped from the 16-byte data Rx FIFO if the FIFO is enabled, if not it is read from a 1-byte buffer register containing the last byte received by the UART. Data received and error status is automatically pushed onto the Rx FIFO if it is enabled. The Rx FIFO is 10 bits wide by 16 deep.
Bit
10 9
Description
PARERR: UART parity error. This bit is set if the UART detected a parity error while receiving the data byte. OVERR: UART overrun error. This bit is set if more data is received by the UART and the FIFO is full. The Overrun Error bit is not associated with any single character and so is not stored in the FIFO, if this bit is set, the entire contents of the FIFO is invalid and should be cleared. This error bit is cleared by reading the UARTDR register. FRMERR: UART framing error. This bit is set if the UART detected a framing error while receiving the associated data byte. Framing errors are caused by non-matching word lengths or bit rates. Rx Data: This 8-bit field contains the receive data.
8
7:0
64
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
5.22
31:19
UART Bit Rate and Line Control Registers -- UBRLCR1-2
18:17
WRDLEN
16
FIFOEN
15
XSTOP
14
EVENPRT
13
PRTEN
12
BREAK
11:0
Bit rate divisor
Reserved
The UART Bit Rate and Line Control registers are 19-bit read/write registers. A write to these registers sets the bit rate and mode of operation for the internal UARTs.
Bit Description
31:19 Reserved 18:17 WRDLEN: This 2-bit field selects the word length as shown in the following table.
Bit Word Length 18
0 0 1 1
17
0 1 0 1 5 bits 6 bits 7 bits 8 bits
16 15
FIFOEN: Set to enable FIFO buffering of Rx and Tx data. Clear to disable the FIFO, that is, set its depth to one byte. XSTOP: Extra stop bit. Setting this bit causes the UART to transmit two stop bits after each data byte, clearing it transmits one stop bit after each data byte. EVENPRT: Even parity bit. Setting this bit sets parity generation and checking to even parity, clearing it sets odd parity. This bit has no effect if the PRTEN bit is clear. PRTEN: Parity enable bit. Setting this bit enables parity detection and generation. BREAK: Setting this bit drives the Tx output active (high) to generate a break.
14
13 12
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
65
CL-PS7111
Low-Power System-on-a-Chip
Bit
11:0
Description (cont.)
Bit Rate Divisor: This 12-bit field set the bit rate. If the system is operating with an 18.432-MHz master clock, then the bit rate divider is fed by a clock frequency of 3.6864 MHz, which is then further divided internally by 16 to give the bit rate. The formula to give the divisor value for any bit rate when operating from the 18.432-MHz clock is: Divisor = (230400 / bit rate) - 1 Equation 5-9
A value of `0' in this field is illegal when in the 18.432-MHz mode. In 13-MHz mode, the clock frequency fed to the UART is 1.8571 MHz. In this mode, `0' is a legal divisor value and generates the maximum possible bit rate. The following tables show example bit rates with the corresponding divisor value.
Table 5-3.
UART Bit Rates at 18.432-MHz Clock Rate Bit Rate at 18.432 MHz
-- 115200 76800 57600 38400 19200 14400 9600 2400 1200 110
Table 5-4.
UART Bit Rates at 13-MHz Clock Rate Bit Rate at 13 MHz
116071 58036 38690 19345 14509 9673 2418 1196 110.02
Divisor Value
0 1 2 3 5 11 15 23 95 191 2094
Divisor Value
0 1 2 5 7 11 47 96 1054
Error on 13-MHz value
0.75% 0.75% 0.75% 0.75% 0.75% 0.75% 0.42% 0.28% 0.18%
66
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
5.23
Synchronous Serial ADC Interface Data Register -- SYNCIO
24:15 14
TXFRMEN
13
SMCKEN
12:8
Frame length
7:0
ADC Configuration byte
Reserved
SYNCIO is a 16-bit read/write register. The data written to the SYNCIO register configures the SSI, and the least-significant byte is serialized and transmitted out of the synchronous serial interface to configure an external ADC, bit D7 (the MSB) first. The transfer clock automatically starts at the programmed frequency, and a synchronization pulse is issued. The ADCIN pin is sampled on every clock edge, and the result is shifted in to the SYNCIO read register. During data transfer the SSIBUSY bit is set high, at the end of a transfer the SSEOTI interrupt is asserted. This interrupt is cleared by reading the SYNCIO register. The data read from the SYNCIO register is the last sixteen bits shifted out of the ADC. The length of the data frame can be programmed by writing to the SYNCIO register, this allows many different ADCs to be accommodated. The bits in the SYNCIO register are defined as follows.
Bit
24:15 14
Description
Reserved TXFRMEN: Setting this bit causes an ADC data transfer to be initiated; the value in the ADC configuration field is shifted out to the ADC, and depending on the frame length programmed, a number of bits is captured from the ADC. If the SYNCIO register is written to with the TXFRMEN bit low, no ADC transfer occurs, but the Frame length and SMCKEN bits are affected. SMCKEN: Setting this bit enables a free-running sample clock at the programmed ADC clock frequency to be output on the SMPLCK pin. Frame Length: The 5-bit Frame length field is the total number of shift clocks required to complete a data transfer. For many ADCs this is 25, 8 for configuration byte + 1 null bit + 16 bits. ADC Configuration: 8-bit configuration data to be sent to the ADC.
13
12:8
7:0
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
67
CL-PS7111
Low-Power System-on-a-Chip
5.24
31:28
Least-Significant Word-LCD Palette Register -- PALLSW
27:24 23:20 19:16 15:12 11:8 7:4 3:0
Grayscale Grayscale Grayscale Grayscale Grayscale Grayscale Grayscale Grayscale value for pixel value for pixel value for pixel value for pixel value for pixel value for pixel value for pixel value for pixel value 7 value 6 value 5 value 4 value 3 value 2 value 1 value 0
The least- and most-significant Word-LCD Palette registers make up a 64-bit read/write register, which maps the logical pixel value to a physical grayscale level. The 64-bit register is made up of 16 x 4-bit nibbles, each nibble defines the grayscale level associated with the appropriate pixel value. If the LCD controller is operating in two bits per pixel, only the lower four nibbles are valid (D[15:0] in the least-significant word). Similarly, one bit per pixel means only the lower two nibbles are valid (D[7:0] in the least-significant word). The pixel-to-grayscale level assignments are shown in the respective bit description table.
5.25
Most-Significant Word-LCD Palette Register -- PALMSW
Refer to the description of PALLSW.
31:28 27:24 23:20 19:16 15:12 11:8 7:4 3:0
Grayscale Grayscale Grayscale Grayscale Grayscale Grayscale Grayscale Grayscale value for pixel value for pixel value for pixel value for pixel value for pixel value for pixel value for pixel value for pixel value 15 value 14 value 13 value 12 value 11 value 10 value 9 value 8
The actual physical color and pixel duty ratio for the grayscale values are shown in Table 5-5. Note that colors 8-15 are the inverse of colors 7-0 respectively; this means that colors 7 and 8 are identical. The steps in the grayscale are nonlinear. but have been chosen to give a close approximation to perceived linear grayscales. The is due to the eye being more sensitive to changes in gray level close to 50% gray. Table 5-5.
Grayscale Value
0 1 2 3 4 5 6 7
Grayscale Value-to-Color Mapping
Duty Cycle
0 1/9 1/5 4/15 3/9 2/5 4/9 1/2
Table 5-5.
Grayscale Value
8 9 10 11 12 13 14 15
Grayscale Value-to-Color Mapping (cont.)
Duty Cycle
1/2 5/9 3/5 6/9 11/15 4/5 8/9 1
% Pixels Lit
0% 11.1% 20.0% 26.7% 33.3% 40.0% 44.4% 50.0%
% Step Change
11.1% 8.9% 6.7% 6.6% 6.7% 5.4% 5.6% 0.0%
% Pixels Lit
50.0% 55.6% 60.0% 66.7% 73.3% 80.0% 88.9% 100%
% Step Change
5.6% 5.4% 6.7% 6.6% 6.7% 8.9% 11.1% -
68
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
5.26
Clear All Start Up Reason Flags Location -- STFCLR
A write to this location clears all the start-up reason flags in the System Flags Status register (SYSFLG).
5.27
Battery Low End-of-Interrupt -- BLEOI
A write to this location clears the interrupt generated by a low battery (falling BATOK with NEXTPWR high).
5.28
Media Changed End-of-Interrupt -- MCEOI
A write to this location clears the interrupt generated by a rising edge of the NMEDCHG input pin.
5.29
Tick End-of-Interrupt Location -- TEOI
A write to this location clears the current pending tick interrupt and watchdog interrupt.
5.30
End--of-Interrupt Location -- TC1EOI TC1
A write to this location clears the under-flow interrupt generated by TC1.
5.31
End-of-Interrupt Location -- TC2EOI TC2
A write to this location clears the under-flow interrupt generated by TC2.
5.32
RTC Match End-of-Interrupt -- RTCEOI
A write to this location clears the RTC match interrupt.
5.33
UART1 Modem Status Changed End-of-Interrupt -- UMSEOI
A write to this location clears the modem status changed interrupt.
5.34
Codec End-of-Interrupt Location -- COEOI
A write to this location clears the sound interrupt (CSINT).
5.35
Enter Idle State Location -- HALT
A write to this location places the system into the idle state by halting the clock to the processor until an interrupt is generated. A write to this location while there is an active interrupt has no effect.
5.36
Enter Standby State Location -- STDBY
A write to this location places the system into the standby state by halting the main oscillator. It automatically switches the DRAMs to self-refresh if the RFSHEN bit is set in the DRAM Refresh Period register. All transitions to the standby state are synchronized with DRAM cycles. A write to this location while there is an active interrupt has no effect.
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
69
CL-PS7111
Low-Power System-on-a-Chip
5.37
LCD Frame Buffer Start Address -- FRBADDR
This register contains the start address for the LCD Frame Buffer. (It is assumed that the frame buffer starts at location 0x0000000 within each chip-select memory region; therefore the value stored within the FRBADDR is only the value of the chip select where the frame buffer is located.) On reset, this is set to 0xC for backward compatibility with CL-PS7110. The register is 4 bits wide. This register must only be reprogrammed while the LCD is disabled (that is, setting low the LCDEN bit within SYSCON2).
5.38
15
System Control Register 2 -- SYSCON2
14
BUZFREQ
13
CLKENSL
12
OSTB
11
Reserved
10
Reserved
9
Reserved
8
UART2EN
Reserved
7
Reserved
6
PCMCIA2
5
PCMCIA1
4
Reserved
3
KBWEN
2
DRAMSZ
1
KBD6
0
CODECEN
This register is an extension of SYSCON1, containing control bits for the features which are new for CL-PS7111. The bits of the second system control register are defined as shown in the above bit description table.
Bit
15 14
Description
Reserved BUZFREQ: BUZ output select. When low, the buzzer signal generated from the on-chip timer is output. When high, a fixed-frequency clock is output (500 Hz in 18.432-MHz mode and 528 Hz in 13-MHz mode). CLKENSL: Clock enable select. When low, the CLKEN signal is output on the RUN/CLKEN pin. When high, the run signal is output on RUN/CLKEN. OSTB: This operating system timing bit is for use only with the 13-MHz operating mode. Normally it is set low; however, when set high it causes a 500-kHz clock to be generated for the timers instead of the 541-kHz one that would normally be available. The divider to generate this frequency is not clocked when this bit is set low. Reserved UART2EN: Internal UART2 enable bit. Setting this bit enables the internal UART2. Reserved PCMCIA2: Enables the interface to the CL-PS6700 device for PCMCIA slot 2. The main effect of this bit is to reassign the functionality of Port B bit 1 to the PRDY input from the CL-PS6700 devices, and to ensure that any access to the NCS4 address space is according to the CL-PS6700 interface protocol. PCMCIA1: Enables the interface to the CL-PS6700 device for PCMCIA slot 1. The main effect of this bit is to reassign the functionality of Port B bit 0 to the PRDY input from the CL-PS6700 devices, and to ensure that any access to the NCS4 address space is according to the CL-PS6700 interface protocol. Reserved KBWEN: When set high, this bit enables the functionality that allows the CL-PS7111 to wake up from a power saving state into the operating state from Port A, irrespective of the status of the Interrupt Mask register.
13
12
11:9 8 7 6
5
4 3
70
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Bit
2 1
Description (cont.)
DRAMSZ: Determines width of DRAM memory interface, where 0 = 32-bit DRAM bank; 1 = 16-bit DRAM bank KBD6: The state of this bit determines how many Port A inputs are OR'ed together to create the keyboard interrupt (and the internal WAKEUP signal if this functionality is enabled by the KBWEN bit). When `0' (the reset state), all 8 Port A inputs generate a keyboard interrupt. When set high, only Port A bits 0 to 5 generate an interrupt from the keyboard. It is assumed that the keyboard row lines are connected into Port A. CODECEN: This bit must always be set to `1'.
0
5.39
23
System Status Flags Register 2 -- SYSFLG2
22
URXFE2
21
20
19
Reserved
18
17
16
UTXFF2
15
14
Reserved
13
12
11
UBUSY2
10
9
Reserved
8
7
Reserved
6
CKMODE
5
4
3
Reserved
2
1
0
This register is an extension of SYSFLG1, containing status bits for the features new to the CL-PS7111.
Bit
23
Description
UTXFF2: UART2 transmit FIFO full. The meaning of this bit depends on the state of the UFIFOEN bit in the UART2 bit rate and line control register. If the FIFO is disabled, this bit is set when the Tx holding register is full. If the FIFO is enabled, the UTXFF bit is set when the Tx FIFO is full. URXFE2: UART2 receiver FIFO empty. The meaning of this bit depends on the state of the UFIFOEN bit in the UART2 bit rate and line control register. If the FIFO is disabled, this bit is set when the Rx holding register contains is empty. If the FIFO is enabled the URXFE bit is set when the Rx FIFO is empty.
22
21:12 Reserved 11 UBUSY2: UART2 transmitter busy. This bit is set while UART2 is busy transmitting data. It is guaranteed to remain set until the complete byte has been sent, including all stop bits. Reserved CKMODE: This bit reflects the status of the CLKSEL (Port E bit 2) input, latched during NPOR. When low, the PLL is running and the chip is operating in 18.432-MHz mode. When high, the chip is operating from an external 13-MHz clock. Reserved
10:7 6
5:0
September 1997
PRELIMINARY DATA BOOK v2.0
REGISTER DESCRIPTIONS
71
CL-PS7111
Low-Power System-on-a-Chip
5.40
15
Interrupt Status Register 2 -- INTSR2
14
Reserved
13
URXINT2
12
UTXINT2
11
10
Reserved
9
8
7
6
5
4
Reserved
3
2
1
0
KBDINT
This register is an extension of INTSR1, containing status bits for the features that are new to CL-PS7111. The interrupt status register reflects the current state of the new interrupt sources within CL-PS7111. Each bit is set if the appropriate interrupt is active.
Bit Description
15:14 Reserved 13 URXINT2: UART2 receive FIFO half-full interrupt. The function of this interrupt source depends on whether the UART2 FIFO is enabled. If the FIFO is disabled, this interrupt is active when there is valid Rx data in the UART2 Rx Data Holding register and is cleared by reading this data. If the FIFO is enabled, this interrupt is active when the UART2 Rx FIFO is half or more full, or if the FIFO is non empty and no more characters are received for a 3-character time-out period. It is cleared by reading all the data from the Rx FIFO. UTXINT2: UART2 transmit FIFO half-empty interrupt. The function of this interrupt source depends on whether the UART2 FIFO is enabled. If the FIFO is disabled (FIFOEN bit is clear in the UART2 Bit Rate and Line Control register), this interrupt is active when there is no data in the UART2 Tx Data Holding register, and is cleared by writing to the UART2 Data register. If the FIFO is enabled, this interrupt is active when the UART2 Tx FIFO is half or more empty and is cleared by filling the FIFO to at least half full. Reserved KBDINT: Keyboard interrupt. This interrupt is generated whenever a key is pressed, from the logical OR of the first 6 or all 8 of the Port A inputs (depending on the state of the KBD6 bit in the SYSCON2 register). The interrupt request is latched and can be deasserted by writing to the KBDEOI location.
12
11:1 0
5.41
15
Interrupt Mask Register 2 -- INTMR2
14
Reserved
13
URXINT2
12
UTXINT2
11
10
Reserved
9
8
7
6
5
4
Reserved
3
2
1
0
KBDINT
This register is an extension of INTMR1, containing interrupt mask bits for the features which are new for CL-PS7111. Refer to INTSR2 for individual bit details.
5.42
Keyboard End-of-Interrupt Location -- KBDEOI
A write to this location clears the KBDINT keyboard interrupt.
72
REGISTER DESCRIPTIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
6.
ELECTRICAL SPECIFICATIONS
Operating Voltage Range
2.7 V ( 5%) at 13.0 MHz 3.3 V ( 10%) at 18.432 MHz
Operating Temperature Range
13 MHz 18.432 MHz Commercial temperature range Commercial temperature range 0C to +70C 0C to +70C
6.1
Absolute Maximum Ratings
-0.5 volts to +6 volts -0.5 volts to VDD + 0.5 volts 20 mA -40C to +125C +300C
DC supply voltage DC input/output voltage DC input current Storage temperature Lead temperature
6.2
Recommended Operating Conditions
+2.55 volts to +3.6 volts 0 to VDD 15 mA 0C to +70C
DC supply voltage DC input/output voltage DC input current Operating temperature
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
73
CL-PS7111
Low-Power System-on-a-Chip
6.3
DC Characteristics
All characteristics are specified at VDD = 2.7 V ( 5%) at 13.0 MHz or 3.3 V ( 10%) at 18.432 MHz, and VSS = 0 V over an operating temperature of 0C to +70C. The current consumption figures relate to typical conditions at 3.3 V, 18.432-MHz operation with the PLL switched on.
Symbol
VIH VIL VT+ VTVHST
Parameter
CMOS input high voltage CMOS input low voltage Schmitt trigger positive going threshold Schmitt trigger negative going threshold Schmitt trigger hysteresis CMOS output high voltage
MIN
0.7 x VDD -0.3 1.52 0.72 0.64 VDD - 0.1 VDD - 1.0 VDD - 1.0
MAX
VDD + 0.3 0.2 x VDD 2.26 1.29 1.13
Units
V V V V V V V V
Conditions
VIL to VIH IOH = 0.8 mA IOH = 3 mA IOH = 12 mA IOL = -0.8 mA IOL = -3 mA IOL = -12 mA VIN = VDD or GND VOUT = VDD or GND
VOH
Output drive 1 and 2 Output drive 3 and 4 CMOS output low voltage
VOL
Output drive 1 and 2 Output drive 3 and 4 -10 -10
0.1 0.5 0.5 +10 +10 5 5 5
V V V A A pF pF pF
IIN IOZ CIN COUT CI/O
Input leakage current Output tristate leakage current a Input capacitance Output capacitance Transceiver capacitance Start-up current consumption
IDDstartup
50
A
Initial 100 ms from power up, 32-kHz oscillator not stable, POR signal at VIL, all other I/O static, VIH = VDD 0.1 V, VIL = GND 0.1 V Just 32-kHz oscillator running, all other I/O static, VIH = VDD 0.1 V, VIL = GND 0.1 V Both oscillators running, CPU static, LCD refresh active, VIH = VDD 0.1 V, VIL = GND 0.1 V All system active, running typical program Minimum standby voltage for state retention and RTC operation only
Standby current consumption IDDstandby Idle current consumption IDDidle Operating current consumption Standby supply voltage VDDstandby
a
20
A
6
mA
IDDoperating
40
mA
2.2
V
Assumes buffer has no pull-up or pull-down resistors.
74
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
6.4
AC Characteristics
All characteristics are specified at VDD = 2.7 to 3.6 volts and VSS = 0 V over an operating temperature of 0C to +70C. Parameters marked with an asterisk (*) are not fully tested. Characteristics marked with a pound sign (#) are significantly different for 13-MHz mode because the EXPCLK is provided as an input rather than generated internally. These timings are estimated at present.
13 MHz Symbol
t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t41
18.432 MHz Units MIN
0* 0 18 0 18 0 5 -10 5 25 2 25 2 50 80 80 0 80 80 200 300 -10 -10 - 5
Parameter MIN
Falling CS to data bus High-Z Address change to valid write data DATA in to falling EXPCLK setup time DATA in to falling EXPCLK hold time EXPRDY to falling EXPCLK setup time Falling EXPCLK to EXPRDY hold time Rising NMWE to data invalid hold time Sequential data valid to falling NMWE setup time Row address to falling NRAS setup time Falling NRAS to row address hold time Column address to falling NCAS setup time Falling NCAS to column address hold time Write data valid to falling NCAS setup time Write data valid from falling NCAS hold time LCD CL2 low time LCD CL2 high time LCD Rising CL2 to rising CL1 delay LCD Falling CL1 to rising CL2 LCD CL1 high time LCD Falling CL1 to falling CL2 LCD Falling CL1 to FRM toggle LCD Falling CL1 to M toggle LCD Rising CL2 to display data change Falling EXPCLK to address valid Data valid to falling NMWE for non sequential access only CLKN rising to (internal) RUN active, clock must be on stable 0* 0 0# 10# 0# 10# 10 -10 5 25 2 25 2 50 80 80 0 80 80 200 300 -10 -10 - 5 1
MAX
35* 45 - - - 50# - 10 - - - - - - 3,475 3,475 25 3,475 3,475 6,950 10,425 20 20 33# -
MAX
25* 35 - - - 50 - 10 - - - - - - 3,475 3,475 25 3,475 3,475 6,950 10,425 20 20 5 - ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ms
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
75
CL-PS7111
Low-Power System-on-a-Chip
13 MHz Symbol
t42 tNCSRD tNCSWR tEXBST tRC tRAC tRP tCAS tCP tPC tCSR tRAS
18.432 MHz Units MIN
0.125
Parameter MIN
CLKN rising to (internal) RUN active, clock must be on stable Negative strobe (NCS0-5) zero wait state read access time Negative strobe (NCS0-5) zero wait state write access time Sequential expansion burst mode read access time DRAM cycle time Access time from RAS RAS precharge time CAS pulse width CAS precharge in Page mode Page mode cycle time CAS set-up time for auto refresh RAS pulse width 120 120 55 230 110 110 30 20 70 20 110 - - - - - - - -
MAX
MAX
s ns ns ns - - - - - - - - ns ns ns ns ns ns ns ns
70 70 35 150 70 70 20 12 45 15 80 *
76
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Consecutive expansion read cycles with minimum wait states
EXPCLK tNCSRD NCS[5:0]
NMOE
A[27:0]
WORD tADRD t1 tPCSRD D[31:0] BUS HELD t3 t4 t3 t4
DATA IN
DATA IN
t5 EXPRDY
t6
Figure 6-1. Expansion and ROM Read Timing
NOTES: 1) tEXRD = maximum 70 ns and 120 ns for minimum wait states and a main oscillator frequency of 18.432 MHz and 13.0 MHz respectively. This time can be extended by integer multiples of the clock period (54 ns), by either driving EXPRDY low and or by programming a number of wait states. EXPRDY is sampled on the falling edge of EXPCLK before the data transfer; if low at this point, the transfer is delayed by one clock period where EXPRDY is sampled again. EXPCLK need not be referenced when driving EXPRDY but is shown for clarity. 2) Consecutive reads with sequential access enabled are identical except that the sequential access wait state field is used to determine the number of wait states, and no idle cycles are inserted between successive non sequential ROM/expansion cycles. This improves performance, so the SQAEN should always be set where possible.
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
77
CL-PS7111
Low-Power System-on-a-Chip
Sequential page mode read cycles with minimum wait states
EXPCLK
NCS[5:0]
NMOE
A[27:4] tEXBST A[3:0] 0 4 8 tEXBST
WORD t1 tEXRD D[31:0] BUS HELD t5 EXPRDY t6 t3 t4 t3 t4 t3 t4
DATA IN
DATA IN
DATA IN
Figure 6-2. Expansion and ROM Sequential Read Timing
NOTES: 1) tEXBST = 35 ns at 18.432 MHz and 55 ns maximum at 13.0 MHz for zero wait state page mode access. This time can be extended by integer multiples of the clock period by either driving EXPRDY low and/or by programming a number of wait states. EXPRDY is sampled on the falling edge of EXPCLK before the data transfer, if low at this point the transfer is delayed by one clock period where EXPRDY is sampled again. EXPCLK need not be referenced when driving EXPRDY but is shown for clarity. 2) Consecutive reads with sequential access enabled are identical except that the sequential access wait state field is used to determine the number of wait states, and no idle cycles are inserted between successive non sequential ROM/expansion cycles. This improves performance, so the SQAEN should always be set where possible.
78
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Consecutive expansion write cycles with minimum wait states
EXPCLK tNCSWR NCS[5:0] tADWR NMWE t8
A[27:0]
WORD t2 D[31:0] BUS HELD WRITE DATA t6 t7 t2 WRITE DATA
t5 NEXPRDY
Figure 6-3. Expansion and ROM Write Timing
NOTES: 1) tEXWRT = MAX 70 ns at 18.432 MHz and 120 ns at 13.0 MHz for minimum wait states. This time can be extended by integer multiples of the clock period (54 ns at 18.432 MHz and 77 ns at 13.0 MHz) by either driving EXPRDY low and/or by programming a number of wait states. EXPRDY is sampled on the falling edge of EXPCLK before the data transfer; if low at this point, the transfer is delayed by one clock period where EXPRDY is sampled again. EXPCLK need not be referenced when driving EXPRDY but is shown for clarity. 2) Consecutive writes with sequential access enabled are identical except that the sequential access wait state field is used to determine the number of wait states. No idle cycles are inserted between sequential and non sequential accesses. In addition, the write data set-up time to falling NMWE (T8) cannot be guaranteed to be positive in this case; for I/O devices where this would cause a problem, the SQAEN bit should not be set.
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
79
CL-PS7111
Low-Power System-on-a-Chip
DRAM word read followed by page mode read (MCLK shown for reference only)
MCLK
DRA[12:0]
ROW
COL t9
ROW t10
COL 1
COL 2
COL n
tRC tRAS RAS[1:0] t12 t11 tCAS CAS[3:0] tCP tCP tRP
D[31:0]
1
2
n
NMOE
NMWE
WORD
WRITE
Figure 6-4. DRAM Read Cycles
80
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
NOTES: 1) tRC (read cycle time) = 150 ns maximum at 18.432 MHz and 230 ns at 13.0 MHz 2) tRAC (access time from RAS) = 80 ns maximum at 18.432 MHz and 110 ns at 13.0 MHz 3) tRP (RAS precharge time) = 70 ns maximum at 18.432 MHz and 110 ns at 13.0 MHz 4) tCAS (CAS pulse width) = 20 ns maximum at 18.432 MHz and 30 ns at 13.0 MHz 5) tCP (CAS precharge in Page mode) = 12 ns maximum at 18.432 MHz and 20 ns at 13.0 MHz 6) tPC (Page mode cycle time) = 45 ns minimum at maximum at 18.432 MHz and 70 ns at 13.0 MHz 7) Word reads shown, for byte reads only one of CAS[3:0] is active, CAS0 for byte 0, etc.
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
81
CL-PS7111
Low-Power System-on-a-Chip
Word write followed by sequential word write to DRAM (MCLK shown for reference only)
MCLK
DRA[12:0]
ROW
COL
ROW
COL 1
COL 2
COL n
t10 t9 tRC tRAS RAS[1:0] tRP
t12 t11 tCAS CAS[3:0] tCP tPC
t13
t14
D[31:0]
DATA OUT
DATA OUT 1
DATA OUT 2
DATA OUT n
NMOE
NMWE
WORD
WRITE
Figure 6-5. DRAM Write Cycles
82
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
NOTES: 1) tRC (Write cycle time) = 160 ns maximum at MCLK = 18.432 MHz, and 230 ns at 13.0 MHz 2) tRAC (Write access time from RAS) = 70 ns maximum at MCLK = 18.432 MHz, and 110 ns at 13.0 MHz 3) tRP (RAS precharge time) = 70 ns minimum at MCLK = 18.432 MHz, and 110 ns at 13.0 MHz 4) tCAS (CAS pulse width) = 20 ns maximum at MCLK = 18.432 MHz, and 30 ns at 13.0 MHz 5) tCP (CAS precharge in Page mode) = 66 ns maximum at MCLK = 18.432 MHz, and 140 ns at 13.0 MHz 6) tPC (Page mode cycle time) = 100 ns maximum at MCLK = 18.432 MHz, and 140 ns at 13.0 MHz 7) Word writes shown, for byte writes only one of CAS[3:0] is active, CAS0 for byte 0, etc.
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
83
CL-PS7111
Low-Power System-on-a-Chip
Video quad word read (MCLK shown for reference only)
tVACC MCLK
DRA[12:0] tRP RAS0
ROW
COL 0
COL 1
COL 2
COL 3
tCAS tCP CAS[3:0] tPC
D[31:0]
0
1
2
3
NMOE
NMWE
Figure 6-6. Video Quad Word Read from DRAM
NOTES: 1) Timings are the same as Page mode word reads. 2) tVACC (video access cycle time) = 326 ns at MCLK = 18.432 MHz, and 462 ns at 13.0 MHz
84
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
DRAM CAS before RAS refresh cycle (MCLK shown for reference only)
MCLK
DRA[12:0]
HELD
ROW
COL
tCSA tRC tRAS RAS[1:0]
CAS[3:0]
D[31:0]
HELD
NMOE
NMWE
Figure 6-7. DRAM CAS-Before-RAS Refresh Cycle
NOTES: 1) tCSA (CAS set-up time) = 15 ns minimum at MCLK = 18.432 MHz, and 20 ns at 13.0 MHz 2) tRAS (RAS pulse width) = 80 ns minimum at MCLK = 18.432 MHz, and 110 ns at 13.0 MHz 3) tRC (cycle time) = 160 ns minimum at MCLK = 18.432 MHz, and 230 ns at 13.0 MHz 4) When DRAMs are placed in self-refresh (entering standby) the same timings apply, but tRAS is extended indefinitely.
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
85
CL-PS7111
Low-Power System-on-a-Chip
t20 CL2 t18 t17 t19 CL1 t21
t15
t16
FRM t22 M t23 DD[3:0]
Figure 6-8. LCD Controller Timing
NOTES: 1) This diagram shows the end of a line. 2) If FRM is high during the CL1 pulse, this marks the first line in the display. 3) CL2 low time is doubled during the CL1 high pulse.
86
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
6.5
I/O Buffer Characteristics
All I/O buffers on the CL-PS7111 are CMOS threshold input bidirectional buffers except the oscillator and power pads. The output buffer is only enabled during pin test mode for signals that are normally inputs. All output buffers are disabled during System Test (High-Z) mode. All buffers have a standard CMOS threshold input stage apart from the Schmitt inputs and CMOS, slew-rate-controlled output stages to reduce system noise. Table 6-1 defines the I/O buffer output characteristics, which apply across the full range of voltage and temperature (2.7 V and 0 to +70oC). Table 6-1. I/O Buffer Output Characteristics
Drive Current
3 mA 12 mA Propagation Delay (MAX) 15 ns 12 ns
Buffer Type
I/O strength 1 I/O strength 2
Rise Time (MAX)
20 ns 16 ns
Fall Time (MAX)
15 ns 13 ns
Load
50 pF 50 pF
NOTES: 1) All propagation delays are specified at 50% VDD to 50% VDD; all rise times are specified as 10% VDD to 90% VDD, and all fall times are specified as 90% VDD to 10% VDD. 2) Pull-up current = 50 A typical at VDD = 3.3 volts.
6.6
Test Modes
The CL-PS7111 supports a number of hardware-activated test modes; these are activated by the pin combinations shown in Table 6-2. All latched signals only alter test modes while NPOR is low, and their state is latched on the rising edge of NPOR. This allows these signals to be used normally during various test modes (for example, the NURESET input can be used normally when the device is set into Functional Test (EPB) mode). Table 6-2. CL-PS7111 Hardware Test Modes
Latched MEDCHG
0 0 1 X X X X X
Test Mode
Normal operation (32-bit boot) Normal operation (8-bit boot) Alternative test ROM boot Oscillator/PLL bypass Functional Test (EPB) Oscillator/PLL Test Pin Test System Test (all High-Z)
Latched PE0
0 1 X X X X X X
Latched NURESET
X X X X 1 0 1 0
NTEST0
1 1 1 1 0 0 0 0
NTEST1
1 1 1 0 1 1 0 0
Within each test mode a selection of pins are used as multiplexed outputs or inputs to provide/monitor the test signals unique to that mode.
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
87
CL-PS7111
Low-Power System-on-a-Chip
6.6.1
Oscillator and PLL Bypass Mode
This mode is selected by NTEST0 = 1, NTEST1 = 0. In this mode all the internal oscillators and PLL are disabled and the appropriate crystal oscillator pins become the direct external oscillator inputs bypassing the oscillator and PLL. MOSCIN must be driven by a 36.864-MHz clock source and RTCOUT by a 32.768-kHz source. In addition the OSCEN (oscillator enable) signal is multiplexed out on the PD[0] pin and can be used to control the external oscillator. The functionality of the CL-PS7111 is not affected in any other way during this test mode. 6.6.2 Functional (EPB) Test Mode
This mode is selected by NTEST0 = 0, NTEST1 = 1, Latched NURESET = 1. The functional EPB (embedded peripheral bus) Test mode is used for running test patterns, both through the EPB external test interface and other patterns, and is used to test individual peripherals and the ARM710a microprocessor. The PLL is automatically bypassed in this mode. In this mode various pins are used as control inputs or outputs, as listed in Table 6-3. Note that in EPB test mode, the chip only wakes up from the standby state using the external wake-up input. In this mode, the OR function of the Port A inputs which can be used to wake-up the chip is not available. Table 6-3.
Signal
TSTA TSTB TSTSTART TSTDIRCLK TSTVCOUNT TACK
EPB Test Mode Signal Assignment
I/O
I I I I I O
Pin
PA0 PA1 PA2 PA3 PA4 word
Function
EPB test control A EPB test control B Fast start speed up RTC divider chain Insertion point for EPB test clock Video Address counter increments faster EPB test acknowledge output
6.6.3
Oscillator and PLL Test Mode
This mode is selected by NTEST0 = 0, NTEST1 = 1, Latched NURESET = 0. This test mode enables the main oscillator and output various buffered clock and test signals derived from the main oscillator, PLL, and 32-kHz oscillator. All internal logic in the CL-PS7111 is static and isolated from the oscillators with the exception of the 6-bit ripple counter used to generate 576-kHz and the realtime clock divide chain. Port A is used to drive the inputs of the PLL directly and the various clock and PLL outputs are monitored on the COL pins. Table 6-4 defines the CL-PS7111 signal pins used in this test mode. This mode is only intended to allow tests of the oscillators and PLL. Table 6-4.
Signal
TSELa XTALON a
Oscillator and PLL Test Mode Signals
I/O
I I
Pin
PA5 PA4
Function
PLL test select Enable to oscillator circuit
88
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Table 6-4.
PLLONa DN0 DN1a PLLBP RTCCLK CLK1 OSC36 CLK576K VTEST VREF
a
Oscillator and PLL Test Mode Signals (cont.)
I I I I O O O O O O PA3 PA2 PA1 PA0 COL0 COL1 COL2 COL4 COL5 COL6 Enable to PLL circuit Selects other frequencies from PLL with DN0 Selects other frequencies from PLL with DN1 Bypasses PLL Output of RTC oscillator 1-Hz clock from RTC divide chain 36-MHz PLL main output 576 kHz divided-down as above Analog output of VCO loop filter VCO output for test
These inputs are INVERTED before being passed to the PLL to ensure that the default state of the port (all `0') maps onto the correct default state of the PLL (TSEL = 1, XTALON = 1, PLLON = 1, D0 = 0, D1 = 1, PLLBP = 0). This state produces the correct frequencies as shown. Any other combinations are for testing the oscillator and PLL and should not be used in the circuit.
6.6.4
Pin Test Mode
This mode is selected by NTEST0 = 0, NTEST1 = 0, Latched NURESET = 1. This test mode allows a simple ICT or MDA tester to check if all pins on the CL-PS7111 are correctly soldered to the PCB. This mode does this by back-driving each pin in turn and checking the response on one designated pin (the COL7 pin). A parity bit is generated and output on the COL7 pin; this parity bit is the XOR of the input from every CL-PS7111 signal pin except for the two test inputs. The input pad of each signal is fed into this XOR gate regardless of signal type. Externally driving (back-driving) any signal pin from its reset state causes a transition of the COL7 pin. Table 6-4 defines the rest state for all CL-PS7111 output pins. As Pin Test mode is entered, the states of all CL-PS7111 inputs are latched, and forced back out on the pins. Thus ALL pins (except the two test pins) are configured as outputs in this mode. This ensures only a `good' solder joint passes the pin test. When not in Pin Test mode, the XOR chain is disabled and cannot toggle to save power. It is essential in Pin Test mode that the NURESET pin is kept in the default (HIGH) state except when it is being tested itself. This ensures that NPOR can be safely included in the pin test chain without affecting the test mode. 6.6.5 High-Z (System) Test Mode
This mode selected by NTEST0 = 0, NTEST1 = 0, Latched NURESET = 0. This test mode asynchronously disables all output buffers on the CL-PS7111, removing the CL-PS7111 signal from the PCB so that other devices on the PCB can be tested. The internal state of the CL-PS7111 is not altered directly by this test mode.
September 1997
PRELIMINARY DATA BOOK v2.0
ELECTRICAL SPECIFICATIONS
89
CL-PS7111
Low-Power System-on-a-Chip
6.6.6
Software-Selectable Test Functionality
When bit 11 of the SYSCON register is set HIGH, all internal EPB accesses are output on the main address and data buses as though they were external accesses to the address space addressed by CS5. Hence CS5 handles a dual role: It is active as the strobe for internal accesses and for any accesses to the standard address range for CS5. Additionally, in this mode, the internal signals are multiplexed out of the device on port pins, as shown in Table 6-5. Table 6-5.
Signal
CLK NIRQ NFIQ
Software Selectable Test Functionality
I/O
O O O
Pin
PE0 PE1 PE2
Function
Waited clock to CPU NIRQ interrupt to CPU NFIQ interrupt to CPU
90
ELECTRICAL SPECIFICATIONS
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
7.
7.1
PACKAGE SPECIFICATIONS
208-Pin VQFP Package Outline Drawing
29.60 (1.165) 30.40 (1.197) 27.80 (1.094) 28.20 (1.110) 0.17 (0.007) 0.27 (0.011)
27.80 (1.094) 28.20 (1.110)
29.60 (1.165) 30.40 (1.197)
CL-PS7111
208-Pin VQFP
0.50 (0.0197) BSC
Pin 1 Indicator
Pin 208 Pin 1
0.45 (0.018) 0.75 (0.030)
1.35 (0.053) 1.45 (0.057)
1.00 (0.039) BSC
0.09 (0.004) 0.20 (0.008) 1.40 (0.055) 1.60 (0.063) 0.05 (0.002) 0.15 (0.006)
0 MIN 7 MAX
NOTES: 1) Dimensions are in millimeters (inches), and controlling dimension is millimeter. 2) Drawing above does not reflect exact package pin count. 3) Before beginning any new design with this device, please contact Cirrus Logic for the latest package information.
September 1997
PRELIMINARY DATA BOOK v2.0
PACKAGE SPECIFICATIONS
91
CL-PS7111
Low-Power System-on-a-Chip
8.
ORDERING INFORMATION EXAMPLE
The order number for the device is:
CL - PS7111 - VC - A
Cirrus Logic, Inc.
Product Line: Portable Products Part Number Revision Temperature Range: C = Commercial Package Type: V = Very-Low-Profile Quad Flat Pack
Contact Cirrus Logic for up-to-date information on revisions.
92
ORDERING INFORMATION example
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Appendix A
A.BOOT
CODE
;(C) Copyright 1995-1996 , Cirrus Logic, Inc. All Rights Reserved. ; TTL ; ; CL-PS7111 Sample program
version1.0 (initial version) ;ks boot from uart1 AREA ENTRY |C$$code|,CODE,READONLY
HwBaseAddress ; HwControl HwControl2 HwControlUartEnable ; HwStatus HwStatus2 HwStatusUartRxFifoEmpty ; HwUartData HwUartData2 HwUartDataFrameErr HwUartDataParityErr HwUartDataOverrunErr HwUartControl HwUartControl2 HwUartControlRate HwUartControlRate115200
EQU
0x80000000
EQU EQU EQU
0x00000100 0x00001100 0x00000100
EQU EQU EQU
0x00000140 0x000001140 0x00400000
EQU EQU EQU EQU EQU EQU EQU EQU EQU
0x00000480 0x00001480 0x0100 0x0200 0x0400 0x000004C0 0x000014C0 0x00000FFF 0x001
September 1997
PRELIMINARY DATA BOOK v2.0
APPENDIX A-BOOT CODE
93
CL-PS7111
Low-Power System-on-a-Chip
HwUartControlRate76800 HwUartControlRate57600 HwUartControlRate38400 HwUartControlRate19200 HwUartControlRate14400 HwUartControlRate9600 HwUartControlRate4800 HwUartControlRate2400 HwUartControlRate1200 HwUartControlRate600 HwUartControlRate300 HwUartControlRate150 HwUartControlRate110 HwUartControlRate115200_13 HwUartControlRate57600_13 HwUartControlRate38400_13 HwUartControlRate19200_13 HwUartControlRate14400_13 HwUartControlRate9600_13 HwUartControlRate4800_13 HwUartControlRate2400_13 HwUartControlRate1200_13 HwUartControlRate600_13 HwUartControlRate300_13 HwUartControlRate150_13 HwUartControlRate110_13 HwUartControlBreak HwUartControlParityEnable HwUartControlPartiyEvenOrOdd HwUartControlTwoStopBits HwUartControlFifoEnable HwUartControlDataLength HwUartControlDataLength5
EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU
0x002 0x003 0x005 0x00B 0x00F 0x017 0x02F 0x05F 0x0BF 0x17F 0x2FF 0x5FF 0x82E 0x000 0x001 0x002 0x005 0x007 0x00b 0x017 0x02F 0x060 0x0c0 0x182 0x305 0x41E 0x00001000 0x00002000 0x00004000 0x00008000 0x00010000 0x00060000 0x00000000
94
APPENDIX A-BOOT CODE
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
HwUartControlDataLength6 HwUartControlDataLength7 HwUartControlDataLength8 ;
EQU EQU EQU
0x00020000 0x00040000 0x00060000
9600baud, 8bits/ch no parity, 1 stop bit EQU EQU EQU EQU EQU EQU EQU EQU HwUartControlRate9600+HwUartControlDataLength8 HwUartControlRate9600_13+HwUartControlDataLength8 0x10000000 0x10000000 0x00000800 ;start address sram ; ;2k bytes '<' '>' 0x40;clock mode 1 = 13
UartValue UartValue_13 BufferAddress snooze buffer Codeexeaddr Count startflag endflag CLKMOD MHz
;
ARM equates
ArmIrqDisable ArmFiqDisable
EQU EQU
0x00000080 0x00000040
ArmUserMode_26 ArmFIQMode_26 ArmIRQMode_26 ArmSVCMode_26 ArmAbortMode_26 ArmUndefMode_26 ; ArmUserMode ArmFIQMode ArmIRQMode ArmSVCMode ArmAbortMode ArmUndefMode ArmMaskMode
EQU EQU EQU EQU EQU EQU
0x00 0x01 0x02 0x03 0x07 0x0b
EQU EQU EQU EQU EQU EQU EQU
0x10 0x11 0x12 0x13 0x17 0x1B 0x1F
September 1997
PRELIMINARY DATA BOOK v2.0
APPENDIX A-BOOT CODE
95
CL-PS7111
Low-Power System-on-a-Chip
; ArmMmuCP ; ArmMmuId ; ArmMmuControl ArmMmuControlMmuEnable ArmMmuControlAlignFaultEnable ArmMmuControlCacheEnable ArmMmuControlWriteBufferEnable ArmMmuControl32BitCodeEnable ArmMmuControl32BitDataEnable ArmMmuControlMandatory ArmMmuControlBigEndianEnable ArmMmuControlSystemEnable ArmMmuControlRomEnable ; ArmMmuPageTableBase ; ArmMmuDomainAccess ; ArmMmuFlushTlb ; ArmMmuPurgeTlb ; ArmMmuFlushIdc CN 0x07 CN 0x06 CN 0x05 CN 0x03 CN 0x02 CN 0x01 EQU EQU EQU EQU EQU EQU EQU EQU EQU EQU 0x00000001 0x00000002 0x00000004 0x00000008 0x00000010 0x00000020 0x00000040 0x00000080 0x00000100 0x00000200 CN 0x00 CP 0xF
;InitialMmuConfig EQU ArmMmuControl32BitCodeEnable +ArmMmuControl32BitDataEnable +ArmMmuControlMandatory +ArmMmuControlBigEndianEnable InitialMmuConfig EQU ArmMmuControl32BitCodeEnable +ArmMmuControl32BitDataEnable +ArmMmuControlMandatory 11/6/96 ks ;leave as little endian
96
APPENDIX A-BOOT CODE
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
;
set little endian,32bit code, 32bit data
LDR MCR ;
r0, =InitialMmuConfig ArmMmuCP,0,r0,ArmMmuControl,c0
set the cpu to SVC32 mode
MRS BIC ORR MSR ; ;
r0,CPSR r0, r0,#ArmMaskMode;remove the mode
;read psw
r0, r0,#ArmSVCMode;set to supervisory 32 bit mode CPSR,r0
initialize HW control
UARTEnable ldr mov str ldr add ldr tst ldreq ldrne r12,=HwBaseAddress r0,#HwControlUartEnable r0,[r12,#HwControl] r1,=HwStatus2 r1,r1,r12 r2,[r1];read system flag2 r2,#CLKMOD r0,=UartValue;load 18 mhz value if bit not set r0,=UartValue_13;load 13 mhz value if bit set ;Enable UART
str ;
r0,[r12,#HwUartControl];initialise Uart
Send ready signal
ldr strb ;
r0,=startflag r0,[r12,#HwUartData];send ready
receive the data
ldr ldr
r3,=count r2,=BufferAddress
September 1997
PRELIMINARY DATA BOOK v2.0
APPENDIX A-BOOT CODE
97
CL-PS7111
Low-Power System-on-a-Chip
01 ; wait for byte available ldr tst bne ; r1,[r12,#HwStatus];spin, if Rx FIFO is empty r1,#HwStatusUartRxFifoEmpty %b01
read the data, store it and accumulate checksum ldrb strb subs bne r0,[r12,#HwUartData] r0,[r2],#1 r3,r3,#1 %b01 ;read data ;save it in memory ;decrement count ;do more if count has not
expired ; all received, send end flag ldr strb ldr address LTORG r0,=endflag r0,[r12,#HwUartData] r15,=codeexeaddr ;send reply ;jump to execution
END
98
APPENDIX A-BOOT CODE
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Bit Index
Numerics
64-Hz tick interrupt (TINT) 58
F
FIFO buffering of Rx and Tx data enable (FIFOEN)
65
A
AC prescale 60 ADC configuration 67
Frame length 67
G
Grayscale enable (GSEN) 60 Grayscale mode (GSMD) 60
B
Battery low interrupt (BLINT) 59 Bit rate divisor 66 Bit to drive buzzer (BZTOG) 49 BOOTBIT 51 BREAK 65 BUZ output select (BUZFREQ) 70 Buzzer Drive (BZMOD) 49
H
HP SIR protocol encoding enable (SIREN) 48
I
ID 50 Internal UART modem status changed interrupt (UMSINT) 58 Internal UART receive FIFO half-full interrupt (URXINT) 58, 72 Internal UART1 transmit FIFO half-empty interrupt (UTXINT1) 58 Internal UART2 enable (UART2EN) 70 Internal UART2 transmit FIFO half-empty interrupt (UTXINT2) 72 Inverted NDCDET enable (DCDET) 52 IrDA Tx mode (IRTXM) 48
C
CKMODE 71 Clear to send (CTS) 51 CLKEN select (CLKENSL) 70 Codec interface enable (CODECEN) 71 Codec interface enable Rx (CDENRX) 48 Codec interface enable Tx (CDENTX) 49 Codec Rx FIFO empty (CRXFE) 51 Codec sound interrupt (CSINT) 59 Codec Tx FIFO full (CTXFF) 51 Cold start flag (CLDFLG) 51
K
KBD6 71 KBDINT 72 KBWEN 70
D
Data carrier detect (DCD) 51 Data set ready (DSR) 51 Debug enable (DBGEN) 49 Display ID nibble (DID) 52 DRAM refresh enable (RFSHEN) 57 DRAM refresh rate (RFDIV) 57 DRAMSZ 71 Drive 0 from battery 63 Drive 0 from mains 63 Drive 1 pump ratio 63
L
LCD enable bit (LCDEN) 49 Line length 61
M
Media changed direct read (MCDR) 52 Media changed interrupt (MCINT) 59 Microwire/SPI peripheral clock speed select (ADCKSEL) 48
E
Even parity (EVENPRT) 65 Expansion clock enable (CLKENB) 54 External expansion clock enable (EXCKEN) 48 External fast interrupt (EXTFIQ) 59 External interrupt input 1 (EINT1) 58 External interrupt input 2 (EINT2) 58 External interrupt input 3 (EINT3) 58 Extra stop (XSTOP) 65 September 1997
N
New battery flag (NBFLG) 51
O
Operating system timing (OSTB) 70
P
Parity enable (PRTEN) 65 PCMCIA1 70 PCMCIA2 70 Pixel prescale 61 Power fail flag (PFFLG) 51 99
PRELIMINARY DATA BOOK v2.0
OVERVIEW
CL-PS7111
Low-Power System-on-a-Chip
R
Reset flag (RSTFLG) 51 RTC compare match interrupt (RTCMI) 58 RTC divisor output (RTCDIV) 51
U
UART framing error (FRMERR) 64 UART overrun error (OVERR) 64 UART parity error (PARERR) 64 UART1 receiver FIFO empty (URXFE1) 51 UART1 transmit FIFO full (UTXFF1) 51 UART1 transmitter busy (UBUSY1) 51 UART2 receiver FIFO empty (URXFE2) 71 UART2 transmit FIFO full (UTXFF2) 71 UART2 transmitter busy (UBUSY2) 71
S
Sample clock enable (SMCKEN) 67 Sequential access enable (SQAEN) 54 Synchronous serial interface end-of-transfer interrupt (SSEOTI) 58
T
TC1 under-flow interrupt (TC1OI) 58 TC2 under-flow interrupt (TC2OI) 58 Timer Counter 1 (TC1M) 49 Timer Counter 1 clock source (TC1S) 49 Timer Counter 2 (TC2M) 49 Timer Counter 2 clock source (TC2S) 49 TXFRMEN 67
V
Version ID (VERID) 50 Video buffer size 61
W
Wake-up direct read (WUDR) 52 Wake-up disable (WAKEDIS) 48 Watch dog expired interrupt (WEINT) 59 Word length enable (WRDLEN) 65
100
OVERVIEW
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Index
Numerics
208-pin VQFP package 91 pin diagram 8 DRAM controller 30 address mapping 31-32 refresh register 32, 57
E
endian functionality 21 EPB Test mode signal assignment 88
A
abbreviations 6 absolute maximum ratings 73 AC characteristics 75 acronyms 6 address mapping boot ROM 43 CL-PS6700 28 DRAM 43 DRAM controller 31 expansion 43 flash 43 Physical-to-DRAM 30 SRAM 43 ARM710a data sheet 18 microprocessor 16, 18, 22, 39, 49, 60, 88
F
functional description block diagram 19
I
interface ADC 41 CL-PS6700 PCMCIA controller 27 codec 41 serial 40 interrupts FIQ (fast interrupt request) 37 IRQ (interrupt request) 37 keyboard 39 source latencies 39
B
big-endian mode 21, 46 block diagram functional 19 maximum system 20 system level 16 boot code 93 options 26 ROM 26 buffer, I/O characteristics 87
K
keyboard column drives 50
L
LCD controller 33, 40, 49, 60 little-endian mode 21, 44
M
memory addressing ARM710a 43 memory interface configuration registers 53 See also DRAM controller 30 memory mapping 43 Microwire 2, 18, 41, 48 modes 4-bits-per-pixel 33 Burst 25 Debug 44, 49 Expansion Transfer 56 Fast Page 18 Free-running 23, 49 Hardware Test 87-90
C
clocking options 35 CL-PS6700 16, 25, 27 conventions abbreviations 6 acronyms 6 numbers and units 7 pin description 7
D
DC characteristics 74 DC-to-DC converters 40
September 1997
PRELIMINARY DATA BOOK v2.0
OVERVIEW
101
CL-PS7111
Low-Power System-on-a-Chip
Functional (EPB) Test 88 High-Z (System) Test 89 Oscillator and PLL Bypass 88 Oscillator and PLL Test 88 Pin Test 89 Page 25, 54 timing 76-80 Prescale 23, 49 Self-refresh 57 Standby 69 System Test (High-Z) 87
N
NPOR. See resets, asynchronous NPWRFL. See resets, asynchronous NSYSRES. See resets, asynchronous NURESET. See resets, asynchronous
O
operating conditions, recommended 73 ordering information 92
P
PCMCIA reads 29 writes 28 pin diagram 8 pin information A[0-27] 9 ADCCLK 10 ADCIN 10 ADCOUT 10 BATOK 9 BUZ 11 CL[1-2] 10 COL[0-7] 11 conventions 7 CTS 10 D[0-31] 9 DCD 10 DD[0-3] 10 DRA[12-0] 9 DRIVE[0-1] 11 DSR 10 EINT[3] 9 EXPCLK 9 EXPRDY 9 FB[0-1] 11 FRM 10 LEDDRV 10 M 10 MEDCHG 9
MOSCIN/ MOSOUT 11 NADCCS 10 NBATCHG 9 NCAS[0-3] 9 NCS[0-3] 9 NCS[4-5] 9 NEINT[1-2] 9 NEXTFIQ 9 NEXTPWR 9 NMOE 9 NMWE 9 NPOR 10 NPWRFL 9 NRAS[0-3] 9 NTEST[0-1] 11 numeric pin listing 12 NURESET 10 PA[0-7] 11 PB[0-7] 11 PCMCK 10 PCMIN 10 PCMOUT 10 PCMSYNC 10 PD[0-7] 11 PE[0-3] 11 PHDIN 10 RTCIN/ RTCOUT 11 RUN 10 RxD 10 SMPLCK 10 TxD 10 WAKEUP 10 WORD 9 WRITE 9
R
realtime clock 23 registers Codec Interface Data 64 DRAM Refresh Period 32, 39-40, 57 internal I/O memory locations table 44 Interrupt Mask 37, 45, 60, 72 Interrupt Status 37, 58, 72 See also ARM710A Data Sheet LCD Control 45, 60 Least-Significant Word-LCD Palette(PALLSW) 68 Memory Configuration Register 1 45, 53 Memory Configuration Register 2 54 Most-Significant Word-LCD Palette(PALMSW) 68 Output Shift 42 Port A Data 47 Port A Data Direction 47
102
OVERVIEW
PRELIMINARY DATA BOOK v2.0
September 1997
CL-PS7111
Low-Power System-on-a-Chip
Port B Data Direction 47 Port D Data 47 Port D Data Direction 47 Port E Data 47 Port E Data Direction 47 programming interface 69 Pump Control 45, 63 Realtime Clock Data 39, 45 Realtime Clock Match 62 SYSCON1 41 SYSCON2 25, 39 System Control 22, 45, 48 system control 70 System Status Flags 45, 50, 71 UART Bit Rate and Line Control 35, 45, 51, 58, 65 UART Data 64 UART Rx 37 resets, asynchronous 39-40
idle 24, 38 operating 24, 38 standby 24, 38 system configuration, maximum 20
T
timer counters 22 timing DRAM CAS-Before-RAS Refresh Cycle 85 DRAM Read Cycles 80 DRAM Write Cycles 82 Expansion and ROM Read 77 Expansion and ROM Write 78-79 LCD Controller 86 Video Quad Word Read 84
U
UART 1-2, 19, 34
S
software-selectable test functionality 90 SPI 2, 18, 41, 48 states
V
video buffer mapping 34
September 1997
PRELIMINARY DATA BOOK v2.0
OVERVIEW
103
CL-PS7111
Preliminary Data Book v2.0
Direct Sales Offices
Domestic
N. CALIFORNIA Fremont TEL: 510/623-8300 FAX: 510/252-6020 S. CALIFORNIA Westlake Village TEL: 805/371-5860 FAX: 805/371-5861 NORTHWESTERN AREA Portland, OR TEL: 503/620-5547 FAX: 503/620-5665 SOUTH CENTRAL AREA Austin, TX TEL: 512/255-0080 FAX: 512/255-0733 Irving, TX TEL: 972/252-6698 FAX: 972/252-5681 Houston, TX TEL: 281/257-2525 FAX: 281/257-2555 NORTHEASTERN AREA Andover, MA TEL: 978/794-9992 FAX: 978/794-9998 SOUTHEASTERN AREA Raleigh, NC TEL: 919/859-5210 FAX: 919/859-5334 Boca Raton, FL TEL: 561/241-2364 FAX: 561/241-7990
International
CHINA Beijing TEL: 86/10-6428-0783 FAX: 86/10-6428-0786 FRANCE Paris TEL: 33/1-48-12-2812 FAX: 33/1-48-12-2810 GERMANY Herrsching TEL: 49/81-52-92460 FAX: 49/81-52-924699 HONG KONG Tsimshatsui TEL: 852/2376-0801 FAX: 852/2375-1202 ITALY Milan TEL: 39/2-3360-5458 FAX: 39/2-3360-5426
JAPAN Tokyo TEL: 81/3-3340-9111 FAX: 81/3-3340-9120 KOREA Seoul TEL: 82/2-565-8561 FAX: 82/2-565-8565 SINGAPORE TEL: 65/743-4111 FAX: 65/742-4111 TAIWAN Taipei TEL: 886/2-718-4533 FAX: 886/2-718-4526 UNITED KINGDOM London, England TEL: 44/1727-872424 FAX: 44/1727-875919
High-Value `Systems in Silicon'
Headquartered in Fremont, California, Cirrus Logic is a leading manufacturer of advanced integrated circuits for the personal computer, consumer, and industrial markets. The Company's software-rich `systems in silicon' add high value to major brands worldwide in applications that span multimedia (graphics, audio, video), communications (enterprise networking and remote data access), and mass storage (magnetic and optical moving media). With a focus on innovative microperipheral chip solutions, Cirrus Logic is committed to technology leadership in the Interactive Age. Cirrus Logic's manufacturing strategy ensures maximum product quality and availability, as well as access to world-class processing technologies through joint ventures with IBM(R) and Lucent Technologies(R). Contact one of our systems and applications specialists to see how your company can benefit from the high value that Cirrus Logic adds to its customers' products. Copyright (c) 1997 Cirrus Logic, Inc. All rights reserved.
Preliminary product information describes products that are in production, but for which full characterization data is not yet available. Cirrus Logic, Inc. has made best efforts to ensure that the information contained in this document is accurate and reliable. However, the information is subject to change without notice. No responsibility is assumed by Cirrus Logic, Inc. for the use of this information, nor for infringements of patents or other rights of third parties. This document is the property of Cirrus Logic, Inc. and implies no license under patents, copyrights, or trade secrets. No part of this publication may be copied, reproduced, stored in a retrieval system or transmitted in any form or by any means (electronic, mechanical, photographic, or otherwise) or used as the basis for manufacture or sale of any items without the prior written consent of Cirrus Logic, Inc. Cirrus, Cirrus Logic, AccuPak, Alpine, Clear3D, Crystal, CrystalClear, CrystalWare, DirectVPM, DIVA, FastEn, FastPath, FasText, FeatureChips, FilterJet, Get into it, Good Data, IntelliFilter, Laguna, Laguna3D, Matterhorn, MediaDAC, Mojave, MotionVideo, MVA, SimulSCAN, S/LA, SmartAnalog, SMASH, SofTarget, SoundFusion, Stargate, Systems in Silicon, TextureJet, True-D, TVTap, UXART, VisualMedia, VPM, V-Port, V-Port Manager, Voyager, WavePort, and WebSet are trademarks of Cirrus Logic, Inc., which may be registered in some jurisdictions. Other trademarks in this document belong to their respective companies. CRUS and Cirrus Logic International, Ltd. are trade names of Cirrus Logic, Inc.
Cirrus Logic, Inc.
3100 West Warren Ave., Fremont, CA 94538 TEL: 510/623-8300 FAX: 510/252-6020
Publications Ordering: 800/359-6414 (USA) or 510/249-4200 Worldwide Web: http://www.cirrus.com
447111-002


▲Up To Search▲   

 
Price & Availability of CL-PS7111-VC-A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X